October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to use the Cox proportional hazards regression model:
> coxph(formula=Surv(time, status)~sex, data=cancer) Output Call: coxph(formula = Surv(time, status) ~ sex, data = cancer) coef exp(coef) se(coef) z p sex -0.531 0.588 0.167 -3.18 0.0015 Likelihood ratio test=10.6 on 1 df, p=0.00111 n= 228, number of events= 165 > coxph(formula=Surv(time, status)~sex + age, data=cancer) Output Call: coxph(formula = Surv(time, status) ~ sex + age, data = cancer) coef exp(coef) se(coef) z p sex -0.513219 0.598566 0.167458 -3.065 0.00218 age 0.017045 1.017191 0.009223 1.848 0.06459 Likelihood ratio test=14.12 ...
Read now
Unlock full access