Displaying 1 result from an estimated 1 matches for "to_stroke".
2011 Apr 05
0
frailty
Hi R-users
I spend a lot of time searching on the web but I didn?t found a clear
answer.
I have some doubts with 'frailty' function of 'survival' package.
The following model with the function R ?coxph? was fitted:
modx <- coxph(Surv(to_stroke, stroke) ~ age + sbp + dbp + sex +
frailty(center,distribution = "gamma", method='aic'), data=datax)
Then I get survival (eg to 10 years) for the mean of the covariates:
survfit1 <- survfit(modx)
timesele<- 3652.25
tab <- as.data.frame(cbind(survfit1$time, survfit1$surv...