作者ericeric100 (??)
看板Statistics
標題[問題] SAS資料處理
時間Wed Aug 6 19:46:28 2008
我的data大概是長這樣,就有幾個subject是同一個家族的,然後分別為小孩和父母這樣
SUBJECT FAMILY ORDER RESPONSE
1501101 1 1 0
1503602 1 2 0
1504603 1 3 1
2501101 2 1 1
2503602 2 2 1
2504603 2 3 1
. . . .
. . . .
請問有沒有辦法算出以order=1的response作為分組,
order=2和3的人的response的次數分配
像是
order=1的response=0情況下 order2和3的response有70%是0,30%是1
也就是我想算recurrence risk ratio的分子:
在親人有反應的情況下,本人也有反應的機率
小弟是SAS新手...先謝謝幫忙解答的人了<(_ _)>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.244.137
→ gsuper:所以在 order=1 2 3 response=0 1 2 3 4*3=12格的情況下 08/06 23:01
→ gsuper:您是想要一一排除 而非整列整欄的排除嗎? 08/06 23:02
→ ericeric100:感覺寫得有點複雜加不清楚,我修一下好了@@" 08/07 09:27
※ 編輯: ericeric100 來自: 140.112.244.137 (08/07 09:32)
※ 編輯: ericeric100 來自: 140.112.129.6 (08/07 11:54)
推 tew:retain oder1 0; 08/07 13:49
推 tew:if order=1 then order1=response 08/07 13:50