Skip to content

Instantly share code, notes, and snippets.

@daynebatten
Created January 6, 2016 19:59
Show Gist options
  • Save daynebatten/b7e31356ba9946dea75e to your computer and use it in GitHub Desktop.
Save daynebatten/b7e31356ba9946dea75e to your computer and use it in GitHub Desktop.
> summary(fit)
Call:
coxph(formula = Surv(time, churn) ~ male + tt(male), data = data,
tt = function(x, t, ...) x * t)
n= 3243, number of events= 1204
coef exp(coef) se(coef) z Pr(>|z|)
male -0.4667783 0.6270191 0.1019114 -4.580 4.64e-06 ***
tt(male) -0.0008827 0.9991177 0.0001251 -7.053 1.75e-12 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
male 0.6270 1.595 0.5135 0.7656
tt(male) 0.9991 1.001 0.9989 0.9994
Concordance= 0.603 (se = 0.193 )
Rsquare= 0.107 (max possible= 0.995 )
Likelihood ratio test= 365.6 on 2 df, p=0
Wald test = 338.9 on 2 df, p=0
Score (logrank) test = 398.3 on 2 df, p=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment