Viswanathan Shankar
2009-Aug-31 05:42 UTC
[R] How to extract the theta values from coxph frailty models
Hello, I am working on the frailty model using coxph functions. I am running some simulations and want to store the variance of frailty (theta) values from each simulation result. Can anyone help me how to extract the theta values from the results. I appreciate any help. Thanks Shankar Viswanathan
shankar at bios.unc.edu
2009-Aug-31 05:57 UTC
[R] How to extract the theta values from coxph frailty models
Hello, I am working on the frailty model using coxph function. I am running some simulations and want to store the variance of frailty (theta) values from each simulation result. Can anyone help me how to extract the theta values from the results. I appreciate any help. Thanks Shankar Viswanathan
David Winsemius
2009-Aug-31 13:41 UTC
[R] How to extract the theta values from coxph frailty models
On Aug 31, 2009, at 1:57 AM, shankar at bios.unc.edu wrote:> Hello, > I am working on the frailty model using coxph function. I am running > some simulations and want to store the variance of frailty (theta) > values from each simulation result. Can anyone help me how to > extract the theta values from the results. I appreciate any help.Lacking any specifics at all, I turn to the example provided in frailty::survival. m <- coxph(Surv(time, status) ~ age + frailty(inst, df=4), lung) str(m) m$history$`frailty(inst, df = 4)`$theta -- David Winsemius, MD Heritage Laboratories West Hartford, CT