andersenplot | R Documentation |
Plot hazards for two strata for each time. At times with an event in one but not the other group, the fitted hazard remains constant, and so the plot is a step function. If hazards are proportional between strata, then the plot should be close to a straight line.
andersenplot(fit)
fit |
A coxph fit with a stratification term. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.