Displaying 1 result from an estimated 1 matches for "ratliv".
Did you mean:
ratio
2011 Nov 14
1
lme4:glmer with nested data
...sk?, as for both tasks I have the same distances measured.
According to the description of the package ?lme4?, I should write:
print(Model.02<-glmer(y~task*dist+(1|indiv)+(1|task:dist))
3- according to the text -book ?The R book? I understand that I should do the following (as mentioned for the ratliver treatment-dataset):
rename factor levels to unique labels:
taskdist<-task:dist
taskdistindiv<-task:dist:indiv
print(Model.03<-glmer(y~task+(1|taskdist)+(1|taskdistindiv)))
Or, pooling 1 and 3 together myself I would end up with:
print(Model.04<-glmer(y~dist*task+(1|indiv)+(1|task:dis...