[R] mixed model

From: NATALIA F TCHETCHERINA <nxt7_at_psu.edu>
Date: Thu 26 May 2005 - 01:50:23 EST


 Hello all,
 I have problem with setting up random effects.  I have a model:
 y=x1+x2+x1*x2+z1+z1*x2
 where x1, x2, x1*x2 are fixed effects
 and z1, z1*x2 are random effects (crossed effects)  I use library(nlme) 'lme' function.
 My question is: how I should set up random effects?  I did
 lme(y~x1+x2+x1:x2, data=DATA, random=~z1+z1:x2, na.action='na.omit')  but it did not work.

 Sincerely, Natalia.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 26 01:59:49 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:05 EST