|
楼主

楼主 |
发表于 2012-10-15 12:53:42
|
只看该作者
SAS与R计算AIC的差异
最近在做model selection时发现,R与SAS得到的AIC统计量有差异。R采用glm()得到AIC,SAS采用proc reg得到AIC。比较结果发现
1. Coefficients(Estimate,Std. Error,t value,Pr(>|t|))are consistent;
2. Residual deviance is consistent;
3. AIC is inconsistent, 186.11(R) and 36.5357(SAS);看了三个model,发觉不同modelAIC的差值是相同的。
SAS
Number in Adjusted
Model R-Square R-Square C(p) AIC Variables in Model
4 0.1388 0.2063 5.0000 36.5357 cancer BIN1 PARP1 BIN1_PARP1
2 0.1179 0.1525 4.1889 35.9494 cancer PARP1
3 0.1156 0.1676 5.2936 37.0133 cancer BIN1 BIN1_PARP1
R:
Model AIC
ic50 ~ cancer + PARP1 185.5189608
ic50 ~ cancer + BIN1+PARP1+BIN1:PARP1 186.1053026
ic50 ~ cancer + BIN1+BIN1:PARP1 186.5829076
从mannual来看,参考文献是有差异的,但没有拿到参考文献,但不知道具体的计算公式上差异
R: Sakamoto, Y., Ishiguro, M., and Kitagawa G. (1986). Akaike Information Criterion Statistics. D. Reidel Publishing Company.
SAS: Akaike 1969; Judge et al. 1980
不知道有哪位注意到这个差异没有?哪个结果更合理一些呢? |
|