Re: [R] model non-nested random effects in nlme library

2012-01-23 Thread mwege
Season Individual FT FTLengthCurvIndex dir.lin 2009W GW522 1 20 0.538931977 1.8884631 2009W GW522 2 28 0.498651384 0.8379838 2010W A1841 17 0.492549537 1.23907 2010W A1842 23 0.630582873 1.30105

Re: [R] model non-nested random effects in nlme library

2012-01-23 Thread Ben Bolker
mwege gmail.com> writes: > > Hello all, > > In lme4 if you want to model two non-nested random effects you code it like > this: > > mod1 <- lmer(y~x + (1|randomvar1) + (1|randomvar2)) > > How would you go about to model something similar in nlme? > > In my database I have two variables for w

[R] model non-nested random effects in nlme library

2012-01-23 Thread mwege
Hello all, In lme4 if you want to model two non-nested random effects you code it like this: mod1 <- lmer(y~x + (1|randomvar1) + (1|randomvar2)) How would you go about to model something similar in nlme? In my database I have two variables for which I have repeated measures, lets call them "ind