View source: R/ML_SurvRegModel.R
SurvRegModel | R Documentation |
Fits the accelerated failure time family of parametric survival models.
SurvRegModel(
dist = c("weibull", "exponential", "gaussian", "logistic", "lognormal",
"logloglogistic"),
scale = 0,
parms = list(),
...
)
SurvRegStepAICModel(
dist = c("weibull", "exponential", "gaussian", "logistic", "lognormal",
"logloglogistic"),
scale = 0,
parms = list(),
...,
direction = c("both", "backward", "forward"),
scope = list(),
k = 2,
trace = FALSE,
steps = 1000
)
dist |
assumed distribution for y variable. |
scale |
optional fixed value for the scale. |
parms |
list of fixed parameters. |
... |
arguments passed to |
direction |
mode of stepwise search, can be one of |
scope |
defines the range of models examined in the stepwise search.
This should be a list containing components |
k |
multiple of the number of degrees of freedom used for the penalty.
Only |
trace |
if positive, information is printed during the running of
|
steps |
maximum number of steps to be considered. |
Surv
Default argument values and further model details can be found in the source See Also links below.
MLModel
class object.
psm
, survreg
,
survreg.control
, stepAIC
,
fit
, resample
stepAIC
, fit
,
resample
## Requires prior installation of suggested packages rms and Hmisc to run
library(survival)
fit(Surv(time, status) ~ ., data = veteran, model = SurvRegModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.