Description Usage Arguments Note Author(s) See Also
Plot fitted survival, cumulative hazard or hazard from a parametric model against nonparametric estimates to diagnose goodness-of-fit.
1 2 3 4 5 6 7 |
x |
Output from |
X |
Matrix of covariate values to produce fitted survival curves
for. Columns represent different covariates, and rows represent
multiple curves. For example For “factor” (categorical) covariates, the values of the contrasts
representing factor levels (as returned by the
If there are only factor covariates in the model, then Kaplan-Meier
curves are plotted for all distinct groups, and by default, fitted
curves are also plotted for these groups. To plot Kaplan-Meier and
fitted curves for only a subset of groups, use If there are any continuous covariates, then a single population Kaplan-Meier curve is drawn. By default, a single fitted curve is drawn with the covariates set to their mean values in the data - for categorical covariates, the means of the 0/1 indicator variables are taken. |
type |
|
t |
Vector of times to plot fitted values for, see |
start |
Left-truncation points, see |
est |
Plot fitted curves ( |
ci |
Plot confidence intervals for fitted curves. By default,
this is |
B |
Number of simulations controlling accuracy of confidence
intervals, as used in |
cl |
Width of confidence intervals, by default 0.95 for 95% intervals. |
col.obs |
Colour of the nonparametric curve. |
lty.obs |
Line type of the nonparametric curve. |
lwd.obs |
Line width of the nonparametric curve. |
col |
Colour of the fitted parametric curve(s). |
lty |
Line type of the fitted parametric curve(s). |
lwd |
Line width of the fitted parametric curve(s). |
col.ci |
Colour of the fitted confidence limits, defaulting to the same as for the fitted curve. |
lty.ci |
Line type of the fitted confidence limits. |
lwd.ci |
Line width of the fitted confidence limits. |
add |
If |
... |
Other options to be passed to
|
Some standard plot arguments such as "xlim","xlab"
may not work.
This function was designed as a quick check of model fit. Users wanting
publication-quality graphs are advised to set up an empty plot with
the desired axes first (e.g. with plot(...,type="n",...)
), then
use suitable lines
functions to add lines.
C. H. Jackson chris.jackson@mrc-bsu.cam.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.