Learn R Programming

ggfortify (version 0.4.17)

fortify.aareg: Convert survival::aareg to data.frame

Description

Convert survival::aareg to data.frame

Usage

# S3 method for aareg
fortify(
  model,
  data = NULL,
  maxtime = NULL,
  surv.connect = TRUE,
  melt = FALSE,
  ...
)

Value

data.frame

Arguments

model

survival::aareg instance

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

Examples

Run this code
if (FALSE) {
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)  
}
}

Run the code above in your browser using DataLab