
Last chance! 50% off unlimited learning
Sale ends in
Fits the accelerated failure time family of parametric survival models.
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
)
assumed distribution for y variable.
optional fixed value for the scale.
list of fixed parameters.
arguments passed to survreg.control
.
mode of stepwise search, can be one of "both"
(default), "backward"
, or "forward"
.
defines the range of models examined in the stepwise search.
This should be a list containing components upper
and lower
,
both formulae.
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.
if positive, information is printed during the running of
stepAIC
. Larger values may give more information on the fitting
process.
maximum number of steps to be considered.
MLModel
class object.
Surv
Default values for the NULL
arguments and further model details can be
found in the source link below.
# NOT RUN {
library(survival)
fit(Surv(time, status) ~ ., data = veteran, model = SurvRegModel)
# }
Run the code above in your browser using DataLab