plot.pCure: Plot method for 'pCure' objects

View source: R/summary.R

plot.pCureR Documentation

Plot method for 'pCure' objects

Description

Plot method for 'pCure' objects

Usage

## S3 method for class 'pCure'
plot(x, part = "both", type = c("residuals", "cv", "trace"), ...)

Arguments

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.

Value

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.


pseudoCure documentation built on April 12, 2025, 1:46 a.m.