Re: [R] How to pass a nested random effect with frailty in coxph()

2014-12-12 Thread Therneau, Terry M., Ph.D.
Use the coxme funtion (package coxme), which has the same syntax as lme4. The frailty() function in coxph only handles the simple case of a random intercept. Terry Therneau On 12/12/2014 05:00 AM, r-help-requ...@r-project.org wrote: Hi, I have a very simple Cox regression model in which I nee

[R] How to pass a nested random effect with frailty in coxph() - survival package?

2014-12-11 Thread David Villegas RĂ­os
Hi, I have a very simple Cox regression model in which I need to include a nested random effect: individual nested in treatment. I know how to pass a single random effect - e.g. frailty(id)- but how can I specify the nested random (id nested in treatment) effect using frailty? The equivalent in lme