如何在R中混合模型同时具有R和G副作用?

时间:2017-10-23 23:04:18

标签: r nested mixed-models

我希望拟合一个协方差模式模型,其中结果在聚类内以及在嵌套在聚类中的主体的重复测量中相关。

在SAS中我会适合以下模型:

PROC MIXED DATA = test ;
    CLASS cluster_id subject_id time ;
    MODEL outcome = time / DDFM = KenwardRoger;
    RANDOM intercept / subject = cluster_id V VCorr ;
    REPEATED  / SUBJECT = subject_id(cluster_id) TYPE = AR(1) R RCorr ;
RUN;

如何使用R适合此模型?我查看了nlme软件包文档,但还没弄明白。

0 个答案:

没有答案