[程式] sas genmod prossoin regression

看板Statistics作者 (咩嚕~~)時間12年前 (2013/04/15 13:21), 編輯推噓0(003)
留言3則, 3人參與, 最新討論串1/1
[軟體程式類別]: 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

04/15 13:44, , 1F
The model you specified is a saturated model.
04/15 13:44, 1F

04/15 14:26, , 2F
請問那我要怎麼改呢?
04/15 14:26, 2F

04/15 15:51, , 3F
同處理組內沒有重覆.
04/15 15:51, 3F
文章代碼(AID): #1HQuvdlG (Statistics)