Skip to content

Instantly share code, notes, and snippets.

@daynebatten
Created January 6, 2016 19:54
Show Gist options
  • Save daynebatten/e36b5b47bd0a321944f5 to your computer and use it in GitHub Desktop.
Save daynebatten/e36b5b47bd0a321944f5 to your computer and use it in GitHub Desktop.
# Re-model, this time with a time-transform
fit <- coxph(Surv(time, churn) ~ male + tt(male), data = data, tt = function(x, t, ...) x * t)
# Check the results again...
summary(fit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment