addModel-methods: Method to add extra models to be fitted

Description Usage Arguments Value

Description

Method to add extra models to be fitted

Usage

1
2
3
4
5
addModel(object, ...)

## S4 method for signature 'SurvivalModel'
addModel(object, modelName, modelOptions = NULL,
  preferredPackage = getDefaultPackage(), suppressOverwriteWarning = FALSE)

Arguments

object

(SurvivalModel object) contains list of already fitted models

...

additional arguments for specific instances of this generic

modelName

(list of character strings) names of models to be added

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 string) name of the preferred package in which to look for the specified model

suppressOverwriteWarning

(logical) should be FALSE so that a warning is displayed when overwriting existing model

Value

a SurvivalModel object


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