Displaying 1 result from an estimated 1 matches for "tetest1".
Did you mean:
test1
2007 Feb 05
2
Two ways to deal with age in Cox model
I hope one and all will allow a stats question:
When running a cox proportional hazards model ,there are two ways to
deal with age,
including age as a covariate, or to include age as part of the
follow-up time, viz,
Age as a covariate:
tetest1 <- list(time= c(4, 3,1,1,2,2,3),
status=c(1,NA,1,0,1,1,0),
age= c(0, 2,1,1,1,0,0),
riskfactor= c(0, 0,0,0,1,1,1))
fitagecovariate<-coxph( Surv(time, status) ~ age +riskfactor, test1)
fitagecovariate
Age included as part of...