我試圖用R重新運行別人的項目,所以我們需要在R.使用一些宏如何擬合R中AR(1)隨機效應相關結構的線性混合模型?
又來了一個非常基本的問題:
m1.nlme = lme(log.bp.dia ~ M25.9to9.ma5iqr + temp.c.9to9.ma4iqr + o3.ma5iqr + sea_spring + sea_summer + sea_fall + BMI + male + age_ini, data=barbara.1.clean, random = ~ 1|study_id)
由於模型是利用AR (1)SAS中的[自相關1協方差模型]用於個體差異,我不知道如何在R中做到這一點。
而且我可以看到不同模型的索引,如非結構化?
感謝
+1,我認爲它們的意思是[?corClasses](http://stat.ethz.ch/R-manual/R-patched/library/nlme/html/corClasses.html)。 @user,你應該在這裏查看文檔:[?lme](http://stat.ethz.ch/R-manual/R-patched/library/nlme/html/lme.html)。 – gung 2012-07-01 17:54:27