SurvRegModel: Parametric Survival Model

Description Usage Arguments Details Value See Also Examples

View source: R/ML_SurvRegModel.R

Description

Fits the accelerated failure time family of parametric survival models.

Usage

1
2
3
4
5
6
7
SurvRegModel(dist = c("weibull", "exponential", "gaussian", "logistic",
  "lognormal", "logloglogistic"), scale = NULL, parms = NULL, ...)

SurvRegStepAICModel(dist = c("weibull", "exponential", "gaussian",
  "logistic", "lognormal", "logloglogistic"), scale = NULL,
  parms = NULL, ..., direction = c("both", "backward", "forward"),
  scope = NULL, k = 2, trace = FALSE, steps = 1000)

Arguments

dist

assumed distribution for y variable.

scale

optional fixed value for the scale.

parms

list of fixed parameters.

...

arguments passed to survreg.control.

direction

mode of stepwise search, can be one of "both" (default), "backward", or "forward".

scope

defines the range of models examined in the stepwise search. This should be a list containing components upper and lower, both formulae.

k

multiple of the number of degrees of freedom used for the penalty. Only k = 2 gives the genuine AIC; k = .(log(nobs)) is sometimes referred to as BIC or SBC.

trace

if positive, information is printed during the running of stepAIC. Larger values may give more information on the fitting process.

steps

maximum number of steps to be considered.

Details

Response Types:

Surv

Default values for the NULL arguments and further model details can be found in the source link below.

Value

MLModel class object.

See Also

psm, survreg, survreg.control, stepAIC, fit, resample

stepAIC, fit, resample

Examples

1
2
3
4
5
library(survival)
library(MASS)

fit(Surv(time, status != 2) ~ sex + age + year + thickness + ulcer,
    data = Melanoma, model = SurvRegModel)

brian-j-smith/MachineShop documentation built on Nov. 12, 2019, 8:33 p.m.