survfit.smoothSurvReg {smoothSurv} | R Documentation |
Compute and plot survivor function/cumulative distribution function for the fitted model.
survfit.smoothSurvReg(formula, cov = NULL, plot = TRUE, cdf = FALSE, by = NULL, xlim = NULL, ylim = c(0, 1), xlab = "t", ylab = expression(paste("S(","t",")", sep = "")), type = "l", lty = NULL, main = NULL, sub = NULL, legend = NULL, bty = "n", ...)
formula |
Object of class smoothSurvReg. |
cov |
Vector or matrix with covariates values for which the survivor curve/cdf
is to be computed and plotted. It must be a matrix with as many columns as
is the number of covariates (interactions included) or the vector of length
equal to the number of covariates (interactions included). Intercept is not
to be included in cov . If cov == NULL a survivor curve
for the value of a covariate vector equal to zero is plotted. If there is
only intercept in the model the survivor curve based on the fiiied error
distribution is always plotted.
|
plot |
If TRUE the plot is directly produced, otherwise only a data.frame
with information used for later plotting is returned.
|
cdf |
If TRUE cumulative distribution function is plotted instead of
the survivor function.
|
by |
Step for a ploting grid. If NULL it is automatically computed.
|
xlim, ylim |
Arguments passed to the plot function.
|
xlab, ylab |
Arguments passed to the plot function.
|
type, lty |
Arguments passed to the plot function.
|
main, sub |
Arguments passed to the plot function.
|
legend, bty |
Argument passed to the plot function.
|
... |
Arguments passed to the plot function.
|
A dataframe with columns named x
and y
where x
gives the grid
and y
the values of the survivor/cum. distribution function at that grid.
Arnost Komarek arnost.komarek@med.kuleuven.ac.be