search for: clinid

Displaying 1 result from an estimated 1 matches for "clinid".

Did you mean: clinic
2011 Dec 01
0
nested random effects with lmer
...and each subject has multiple measurements. For simplicity, suppose there 4 clinics, 3 subjects per clinic, and each subject has 3 repeated measures. Outcome is continuous. I am trying to implement this model with lmer function in lme4 library. lmeobj1<-lmer(outcome~med+time+medtime+(time|clinid)+(subjid|clinid)) My data set is as follows: med has two levels, time has three levels, medtime is the interaction between med and time, subjid is the id numbers for subjects, clinid is the id numbers for clinics. I pasted the data below. The above code is giving the same results with fix...