[程式] SPSS GLM算incidence rate ratio
目的: 希望使用SPSS 分別算出組別的incidence rate
然後再用Incidence Rate Ratio(IRR)比較兩者的差別
參考如右圖 http://imgur.com/6jFBVkj
![](https://i.imgur.com/6jFBVkj.jpg)
這是我測試的data http://ppt.cc/jZaJ
目前組別的Event, PY, rate已使用aggregate分別求出
group event_sum follow_sum rate=[(event_sum/follow_sum)*1000]
1 4 279.8 14.3
2 5 805.6 6.2
照說IIR應該會約落在14.3/6.2=2.3左右(reference:2) 或 6.2/14.3=0.4(reference:1)
但在參考下面這網址使用GLM的poisson算IRR時,算出來的IRR卻只有1.708
http://www.ats.ucla.edu/stat/spss/dae/poissonreg.htm
我使用的語法和結果 http://imgur.com/rP6sSS3
![](https://i.imgur.com/rP6sSS3.jpg)
研究了好一陣子都弄不出來 不知道是哪裡出錯了 懇請大師達人們賜教 感激不盡
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.226.185.112
※ 文章網址: https://www.ptt.cc/bbs/Statistics/M.1426771394.A.37F.html
→
03/19 22:55, , 1F
03/19 22:55, 1F
![](https://i.imgur.com/0AYtq5N.jpg)
→
03/19 23:23, , 2F
03/19 23:23, 2F
→
03/19 23:23, , 3F
03/19 23:23, 3F
→
03/19 23:24, , 4F
03/19 23:24, 4F
→
03/19 23:25, , 5F
03/19 23:25, 5F
→
03/19 23:27, , 6F
03/19 23:27, 6F
→
03/19 23:29, , 7F
03/19 23:29, 7F