[R] nested random effects

From: Shaw, Philip (NIH/NIMH) <shawp_at_mail.nih.gov>
Date: Thu 24 Mar 2005 - 03:58:09 EST


Hi  

I am struggling with nested random effects and hope someone can help.      

I have individuals (ID) who are nested within families (FAM). I want to model an outcome variable, and take account of the intercorrelation of individuals within each family.  

I think this amounts to two random effects, one nested within the other.  

How can I model this in R?  

So far I have tried using the library(nlme), and then  

Y~ID, random=~1|ID*FAM,  

But this isn't working..  

Thanks  

Philip

        [[alternative HTML version deleted]]



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 Mar 24 04:18:20 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:55 EST