Convert survival::aareg to data.frame
# S3 method for class 'aareg'
fortify(
model,
data = NULL,
maxtime = NULL,
surv.connect = TRUE,
melt = FALSE,
...
)survival::aareg instance
original dataset, if needed
truncate the input to the model at time "maxtime"
logical frag indicates whether connects survival curve to the origin
Logical flag indicating whether to melt each timeseries as variable
other arguments passed to methods
data.frame
if (FALSE) { # \dontrun{
if (requireNamespace("survival", quietly = TRUE)) {
fortify(aareg(Surv(time, status) ~ age + sex + ph.ecog, data = lung, nmin = 1))
fortify(aareg(Surv(time, status) ~ age + sex + ph.ecog, data = lung, nmin = 1), melt = TRUE)
}
} # }