Skip to content

Instantly share code, notes, and snippets.

@andrewheiss
Created October 19, 2015 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewheiss/6430d4d65e69109c03de to your computer and use it in GitHub Desktop.
Save andrewheiss/6430d4d65e69109c03de to your computer and use it in GitHub Desktop.
clustered
model2 <- coxph(Surv(years_since_event, fail) ~ x1 + x2 + cluster(name), data=df, ties="breslow")
summary(model2)
# exp(coef) exp(-coef) lower .95 upper .95
# x1 1.2169 0.8218 0.9995 1.482
# x2 0.5712 1.7506 0.4849 0.673
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment