fortify.aareg | R Documentation |
survival::aareg
to data.frame
Convert survival::aareg
to data.frame
## S3 method for class 'aareg'
fortify(
model,
data = NULL,
maxtime = NULL,
surv.connect = TRUE,
melt = FALSE,
...
)
model |
|
data |
original dataset, if needed |
maxtime |
truncate the input to the model at time "maxtime" |
surv.connect |
logical frag indicates whether connects survival curve to the origin |
melt |
Logical flag indicating whether to melt each timeseries as variable |
... |
other arguments passed to methods |
data.frame
## Not run:
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)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.