Description Usage Arguments Value Note Examples
This function generates data to be used with ggplot2
and is custom-
tailored for use with gg_cox_zpn
. It returns a list the length of
x
with names matching the row names of the output of cox.zph
.
Each list
element has two data.frames
, resid
and
pred
matching the residuals and fit+confidence interval for that element
along with ylab
(which matches the list element name) and a boolean
log
which indicates whether a log scale should be used.
1 2 | ## S3 method for class 'cox.zph'
fortify(x, df = 4, nsmo = 40)
|
x |
result of the |
df |
the degrees of freedom for the fitted natural spline, |
nsmo |
number of points used to plot the fitted spline. |
list
with residuals and fit+confidence intervals for each
component of x
Designed to be used with gg_cox_zph but can be used separately.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.