firelife vif(model) variance inflation factor,小于5无共线性 笔记里记的。具体怎么我也忘了 好像也可以inverse(t(x) %*% x) 然后看特征值为零的那项
hetall 回复 第2楼 的 firelife:用vif()是要加载什么包吗?为什么我直接用vif()这个函数,显示"没有'vif'这个函数"? 是不是我使用方式错误了,我是 这样的: r2.15.lm<-lm(y2.15~1+x2.15) attach(r2.15) r2.15.lm<-lm(y2.15~1+x2.15) vif(r2.15.lm) 错误: 没有"vif"这个函数 (接触R还不够深入,麻烦你再举个例子,非常感谢!^^)
micro@ 回复 第2楼 的 firelife:Collinearity should not be confused with autocorrelation. 回复 第1楼 的 hetall:Check ?acf and model the correlation.