Plot a Kaplan-Meier mean covariate VPC
Description
Draws each stratum’s observed Kaplan-Meier mean covariate curve over its replicate band from [ferx_vpc_kmmc](ferx_vpc_kmmc.qmd), one panel per stratum, with base graphics. The curve is left-continuous, and so is the band: the band at grid time t[k] holds from t[k - 1] up to and including t[k]. The observed curve stops where fewer than min_at_risksubjects are at risk.
Usage
# S3 method for ferx_vpc_kmmc
plot(x, y = NULL, ...)Arguments
x: Aferx_vpc_kmmcobject.y: Unused....: Passed tographics::plot().
Value
x, invisibly.
Examples
ex <- ferx_example("tte_weibull")
d <- utils::read.csv(ex$data)
d$WT <- 50 + 3 * (d$ID %% 10)
plot(ferx_vpc_kmmc(ex$model, d, covariate = "WT", n_sim = 50L, seed = 1L))