[R] Multilevel Survival Analysis - Cox PH Model

Terry Therneau therneau at mayo.edu
Tue Jul 5 14:43:58 CEST 2011


> Patients are either fully oriented or not (1 or 2) after an hour. If
they're
> not, then the data is right censored.

It doesn't look like right censored data to me, unless the time variable
were "time to full orientation"; you labeled it "time to awake" which
appears to be something different.  

However, to answer your coxme question the random effect would be
	(1| MRN/COURSE)
which stands for  a random intercept term for each course, and one for
each mrn within course.  This is the same notation as lmer.

Terry Therneau



More information about the R-help mailing list