Description Usage Arguments Value
Method to create the SurvivalModel
object
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())
|
object |
|
... |
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 |
A SurvivalModel
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.