plot.pCure | R Documentation |
Plot method for 'pCure' objects
## S3 method for class 'pCure'
plot(x, part = "both", type = c("residuals", "cv", "trace"), ...)
x |
An object of class 'pCure', usually returned by the 'pCure()' function. |
part |
A character string specifies which component of the cure model to plot. The default is "both", which plots both the incidence and latency components if a mixture cure model was fitted, or both the long- and short-term effects if a promotion time model was fitted. |
type |
A character string specifying the type of plot to generate. Available options are "residuals," "cv," and "trace," which correspond to the pseudo-residual plot, cross-validation plot, and trace plot for different values of the tuning parameter, respectively. |
... |
Other arguments for future extension. |
A ggplot object representing the residual plot, cross-validation plot,
or the trace plot for an object of class "pCure"
.
This can be further modified using "ggplot2"
functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.