Displaying 1 result from an estimated 1 matches for "timesq".
Did you mean:
times
2006 Aug 10
1
help with structuring random factors using lmer()
Hi,
I am an R beginner and having problems structuring my REML models. I have
a model with
y=weight
x1=time
x2=timesquared
id=individual identity
I need to structure the model such that in the random effects there is a
constant intercept for all individuals but a separate individual slope for
both x1 and x2 (a coefficient score for every individual).
m1<-lmer(weight~time+timesq+(1|id)+(timesq-1|id)+(time-1|id),...