View source: R/forward_selection.R
forward_selection | R Documentation |
This method is meant as a comparator for the penalized estimation procedure.
forward_selection(
vars,
data,
na.action = "na.fail",
subset = NULL,
hazard = c("weibull"),
frailty = TRUE,
model,
knots_list = NULL,
fixed1 = character(0),
fixed2 = character(0),
fixed3 = character(0),
optim_method = "L-BFGS",
select_crit = "bic",
verbose = 0,
control = NULL
)
vars |
character string with all of the possible variable names to be searched through. |
data |
a |
na.action |
how NAs are treated. See |
subset |
a specification of the rows to be used: defaults to all rows. See |
hazard |
String specifying the form of the baseline hazard. |
frailty |
Boolean indicating whether a gamma distributed subject-specific frailty should be included. Currently this must be set to TRUE. |
model |
String specifying the transition assumption |
knots_list |
Used for hazard specifications besides Weibull, a
list of three increasing sequences of integers, each corresponding to
the knots for the flexible model on the corresponding transition baseline hazard. If
|
fixed1 |
a string vector for parameters you want guaranteed included in arm 1 |
fixed2 |
a string vector for parameters you want guaranteed included in arm 2 |
fixed3 |
a string vector for parameters you want guaranteed included in arm 3 |
optim_method |
a string naming which |
select_crit |
a string indicating what criterion should be used to determine whether a covariate should be added. |
verbose |
Numeric indicating the amount of iteration information should be printed to the user. Higher numbers provide more detailed information to user, but will slow down the algorithm. |
control |
a list of control attributes passed directly into the |
A list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.