mixed models - Nesting a factor within an interaction term in R -
i have mixed effect model developed in sas trying recreate in r. dependent variable y function of 3 fixed effects, a, b , c, , random effect, d. there 3 levels of d each combination of axb, making nested within axb 2-way interaction. in sas, code follows:
proc mixed data = s; class b c d; model y = b a*b c c*a c*b a*b*c / outp = s2 influence residual; repeated c/ subject = d(a*b); random d(a*b); run; i trying replicate same in r using lmer, unable nest random factor d within axb interaction. please me this?
Comments
Post a Comment