Displaying 1 result from an estimated 1 matches for "woerter".
Did you mean:
woerner
2006 May 11
1
Mixed Model notation SAS -> R
Dear experts,
I'm trying to transfer a mixed model developed in SAS to R. This it what
it looks like in SAS:
proc mixed method=ml;
class a b c subj;
model y = a|b|c;
repeated /subject=subj type=ar(1);
I tried something like this in R:
mixed <- lme(y ~ a + b + c + a*b + a*c + b*c + a*b*c,
random = ~ 1 | subj,
correlation = corAR1(form = ~ 1 | subj)