数学建模社区-数学中国
标题:
求救肿么在stata里做sub-group analysis
[打印本页]
作者:
prudence
时间:
2013-10-8 19:52
标题:
求救肿么在stata里做sub-group analysis
额,我念biostatistics这门课时都是英文,论文也是英文,所以下面术语都是英文了,求来解释的大神给条活路,不要用中文术语来蹂躏娇弱的区区,嘤嘤嘤……
0 g( V# x. Z; @* S) U! K
最初是一直用spss的。
# l6 h0 G) W, D F. Y3 g7 }2 y' k
6 I( d ~+ \) b) F9 T' r
整个论文基本用logistic regression
, x: [& M$ z- \% s* e( \9 K& _! u2 \
我的outcome 是intention to smoke
/ U k7 I" [! X) \
main predictor 是exposure to smoking related messages。
% J9 s5 Q# V6 v) W1 ]! h# u) @2 q
confounders:age, gender,with or without smoking friends etc (已经全部都recode成了categorical variables)
! l# r, e. |: p$ X
然后做了一个subgroup analysis,把整个sample split 成了“从来不抽烟的同学”和“曾经抽过烟的同学(包括现在正在抽烟的同学)”两个subgroup。
1 ?% T/ Y6 _5 m- b3 P) W$ w" F4 n
从来不抽烟的同学一个logistic regression
* m+ A, V8 K- @) l$ J7 h
曾经抽过烟的同学一个logistic regression
5 L9 u( { }* |1 S% T- E5 J: M( ]
这样分别算odds ratio。
( o- q! C" f6 n9 [3 S
现在我的导师要我adjust for clustering effect。。。我跪了,tutorial的时候木有讲过SPSS里肿么倒腾这个啊,搜youtobe也都牛头不对马嘴。求哪位大神发发慈悲,指导指导小的吧。
" R8 {( o8 d' b, y6 V: G
: h/ ?! \) a* |& s. v/ I
要是有用stata的大神就更好了,求教怎么在stata里做subgroup analysis,第一步是不是也要像SPSS一样split 整个sample into 抽烟和不抽烟的两个subgroup?
' l0 E5 D: X" J `
我按照论坛上的guide直接输入一下命令
$ n7 \7 }! [) o
xi:svy:logistic cintenti i.new i.cage i.cgender i.cpsmoke, robust cluster(sch), subpop(csstatu0),结果提示invalid subpop。肿么破。求大神指教。
5 {) V+ E$ a8 j0 u# O$ P" g" s
欢迎光临 数学建模社区-数学中国 (http://www.madio.net/)
Powered by Discuz! X2.5