- 最后登录
- 2012-5-9
- 注册时间
- 2010-8-25
- 威望
- 0
- 金钱
- 224
- 贡献
- 142
- 阅读权限
- 20
- 积分
- 366
- 日志
- 0
- 记录
- 0
- 帖子
- 79
- 主题
- 8
- 精华
- 0
- 好友
- 2
  
- 注册时间
- 2010-8-25
- 最后登录
- 2012-5-9
- 积分
- 366
- 精华
- 0
- 主题
- 8
- 帖子
- 79
|
Kenny你好:' X8 _1 ]6 }+ Q. D/ z. S$ S
) z9 h `9 q1 [: O3 ]我最近在一篇文章內看到作者如此敘述他的方法:9 ], i3 }6 o4 |+ b8 K
先說明資料結構,每一筆資料有Y A B* u0 o/ D# a% Y! S% V5 d% N @3 b
作者要估計 (A-B) 差是正值或負值時對Y的效果。1 m; Y3 B) h9 d/ H7 a, G( j
5 g( T$ ^% H8 Q$ d& Uwe fitted a random-effects piecewise logit model on the data set using the difference between A and B as an independent variable and accounting for potentially different slopes when the A-B difference was positive versus negative.9 j8 F- N3 a. y) H! G
7 H x; r$ l) ~' x6 ]9 D
分析後,結果同時顯示了當A-B為正、A-B為負,之結果。8 v$ f% d- v' f$ o5 d0 \% G
9 w w+ @3 {- ]' B7 W" e我不懂的是作者如何處理A-B,A-B不是正值就是負值,或是0,當A-B是正值有資料的時候,
, E3 g# N0 e9 }. X: g& {* V. }3 x負值就是missing value,vice versa, 因此在同一筆資料上,怎麼同時會有(A-B)為正值、為負值的資料?% _. E7 h" w+ m4 P
" U* q( z( S" I. s; S( g. B8 x0 {) m我本來想作者是將資料分兩半分別估計,但他的結果卻只顯示一個intercept,其他係數也是一個、R-square也一個,所以也不是分開估計。! c" T! j, b4 h7 \( P$ e% T9 K; p
* n, p X- v9 d) W+ h謝謝Kenny的幫忙。
9 z& X' @7 w! Z! ~: F! g" B0 j0 U+ W4 ^. W( g
" F" b3 z+ k8 B2 t0 F( rChien-Hsin8 b0 O! ~% Q, k4 Z7 D
. m; j, U( B+ V8 s$ |
本帖最后由 chienhsin 于 2011-6-17 06:46 编辑 ; R( o5 d3 R, R. W6 I: ^
2 K' N& C7 s* _% R" _
|
|