plot.funsurv: Plot method for 'funsurv' objects

View source: R/plot.R

plot.funsurvR Documentation

Plot method for 'funsurv' objects

Description

Plot method for 'funsurv' objects

Usage

## S3 method for class 'funsurv'
plot(x, what = c("beta", "fpc", "basesurv"), ...)

Arguments

x

A funsurv object

what

A character string specifying what to be plotted. Use what = "beta" to plot the estimated \beta(t). Use what = "fpc" to plot the functional principal components associated with the the longitudinal measurements. Use what = "basesurv" to plot the baseline survival probabilities.

...

additional graphical parameters to be passed to methods.

Value

A ggplot object ...

Examples

data(simDat)
fit <- AR1_FRAILTY(Recur(t_start %to% t_stop, id, status) ~ z1,
                   sdat = sdat, fdat = fdat, iter.max = 30)
plot(fit, what = "beta")
plot(fit, what = "fpc")
plot(fit, what = "basesurv")

FunSurv documentation built on April 3, 2025, 9:13 p.m.