fitModels-methods: Method to create the 'SurvivalModel' object

Description Usage Arguments Value

Description

Method to create the SurvivalModel object

Usage

1
2
3
4
5
6
7
fitModels(object, ...)

## S4 method for signature 'SurvivalData'
fitModels(object, armAsFactor = TRUE,
  covariates = character(0), endPoint, subgroup = as.character(NA),
  model = c("exponential", "weibull", "llogis", "lnorm", "gompertz"),
  modelOptions = NULL, preferredPackage = getDefaultPackage())

Arguments

object

SurvivalData contains data to be fitted

...

additional arguments for specific instances of this generic

armAsFactor

(logical) TRUE if arm is to be included in the model, FALSE if separate models are to be fitted for each arm

covariates

(character vector) names of covariates to use

endPoint

(character) name of the end-point to be fitted

subgroup

(character string or NA) name of subgroup to fit

model

(character vector) names of model distributions to fit

modelOptions

(named list) extra options to be passed to the fitting functions. For example modelOptions=list(spline=list(k=4)) will pass the argument k=4 to flexsurvSpline

preferredPackage

(character) name of the preferred package in which to look for the specified model

Value

A SurvivalModel object


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