Skip to content

Instantly share code, notes, and snippets.

@daynebatten
Created December 23, 2015 14:14
Show Gist options
  • Select an option

  • Save daynebatten/426003a0f3576db2d712 to your computer and use it in GitHub Desktop.

Select an option

Save daynebatten/426003a0f3576db2d712 to your computer and use it in GitHub Desktop.
> summary(fit)
Call:
coxph(formula = Surv(start_time, end_time, churned) ~ contacted_support,
data = data)
n= 2000, number of events= 150
coef exp(coef) se(coef) z Pr(>|z|)
contacted_support 0.6389 1.8943 0.1841 3.47 0.000521 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
exp(coef) exp(-coef) lower .95 upper .95
contacted_support 1.894 0.5279 1.32 2.718
Concordance= 0.555 (se = 0.016 )
Rsquare= 0.006 (max possible= 0.664 )
Likelihood ratio test= 11.24 on 1 df, p=0.0008017
Wald test = 12.04 on 1 df, p=0.0005213
Score (logrank) test = 12.4 on 1 df, p=0.00043
> cox.zph(fit)
rho chisq p
contacted_support 0.18 4.41 0.0358
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment