作者jackie1023 (咩噜~~)
站内Statistics
标题[程式] sas genmod prossoin regression
时间Mon Apr 15 13:21:40 2013
[软体程式类别]:
sas
[程式问题]:
跑出来的Deviance自由度有问题
[软体熟悉度]:
中(3个月到1年)
[问题叙述]:
在做Poisson regression model时有两的变数 age smoke在没有交互作用时DF是正确的,
但是在有交互作用时,DF却是0...不知道怎麽改
[程式范例]:
data coro;
input smoker age people die @@; /* 0:nonsmoker */
ln=log(people);
cards;
0 0 18793 2 1 0 52407 32
0 1 10673 12 1 1 43248 104
0 2 5710 28 1 2 28612 206
0 3 2585 28 1 3 12663 186
0 4 1462 31 1 4 5317 102
;
run;
proc genmod data=coro DESCENDING;
class smoker(ref='0') age;
model die = age smoker smoker*age
/dist=poisson link=log offset=ln ;
run;
-----------------------------------------------------------------------------
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.75.99
1F:→ bmka:The model you specified is a saturated model. 04/15 13:44
2F:→ jackie1023:请问那我要怎麽改呢? 04/15 14:26
3F:→ andrew43:同处理组内没有重覆. 04/15 15:51