createAvCurvePlotData-methods: Method to create the 'AvCurvePlotData' object

Description Usage Arguments Details Value

Description

Method to create the AvCurvePlotData object

Usage

1
2
3
4
5
6
createAvCurvePlotData(object, ...)

## S4 method for signature 'SurvivalModel'
createAvCurvePlotData(object, maxTime = NULL,
  Npoints = 201, Nsim = 500, models = NULL, seed = NULL, B = 1000,
  conf.type = c("none", "plain", "log", "log-log")[3])

Arguments

object

SurvivalModel object

...

Additional arguments for specific instances of this generic

maxTime

(numeric) the time to extrapolate the curves to (default=NULL implies no extrapolation)

Npoints

(numeric) the number of time points for which the survival curves are to be evaluated at

Nsim

(numeric) the number of simulations used to generate the averaged curves

models

(character vector) which models from names(object@models) are to be used when calculating averaged survival curves - default NULL implies use all

seed

(numeric, default NULL) if not NULL then set random seed (although it will only be used if models include covariates) - random numbers are used when models includes covariates or when confidence intervals are required

B

(integer) Only used when no covariates in model. See summary.flexsurvreg Number of simulations from the normal asymptotic distribution of the estimates used to calculate confidence intervals. Decrease for greater speed at the expense of accuracy, or set B=0 to turn off calculation of CIs.

conf.type

("none", "plain", "log" [default], "log-log") argument passed to survfit

Details

If the models include covariates a simulation procedure is required to generate averaged survival curves. If the models do not include covariates then summary.flexsurvreg is used

Value

A AvCurvePlotData object


scientific-computing-solutions/sibyl documentation built on May 21, 2019, 8:40 a.m.