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

Description Usage Arguments Value Examples

View source: R/fortify_surv.R

Description

Convert survival::aareg to data.frame

Usage

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

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

Value

data.frame

Examples

1
2
3
library(survival)
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)

sinhrks/ggfortify documentation built on May 26, 2018, 6:24 p.m.