Displaying 2 results from an estimated 2 matches for "randomvar2".
Did you mean:
randomvar1
2011 Dec 07
1
MIXED MODEL WITH REPEATED MEASURES
...ated to my ignorance of statistics, and/or (2) I'm fairly new to R, so
the problem may be related to my ignorance of R syntax. I have tried so many
sources, my head is spinning,
Here is the basic structure of my data (in longitudinal form):
FixedVar1 FixedVar2 RandomVar1 RandomVar2 ...
DepVar
Subject1
1996 AF A 0.002 800 2.1
1997 AF A 0.002 760 2.1
1998 AF A 0.003 760 2.1
1999 AF A 0....
2012 Jan 23
2
model non-nested random effects in nlme library
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 "individual" and "year".
But none of the "individuals" were measured in more than one year. So as I
understand it, I sh...