I have two models:
model1:(shared frailty )
Assume all id have a shared frailty (who has a disease and who didn't )
then I could use the following code:
or coxph(Surv(time_to_death,Death)~ sex + frailty(id), data=sample)
Assuming there is a correlation between people who had a disease and who did
not have a disease.
I'm not sure how I could fit the correlated frailty in R?
Could you please help me is there any way I can do it through coxme package?