To be used in fit_mfp().
order_variables(xorder = "ascending", x = NULL, ...)order_variables_by_significance(
xorder,
x,
y,
family,
weights,
offset,
strata,
method,
control,
nocenter
)
A vector of the variable names in x, ordered according to xorder.
a string determining the order of entry of the covariates
into the model-selection algorithm. The default is ascending, which enters
them by ascending p-values, or decreasing order of significance in a
multiple regression (i.e. most significant first).
descending places them in reverse significance order, whereas
original respects the original order in x.
a design matrix of dimension n * p where n is the number of observations and p the number of predictors including intercept for glms, or excluding intercept for Cox models.
passed to order_variables_by_significance.
a vector of responses for glms, or a Surv object generated using
the survival::Surv() function for Cox models.
a character string naming a family function supported by
glm() or "cox" for Cox models.
parameters for both glm and Cox models, see either
stats::glm() or survival::coxph() depending on family.
Cox model specific parameters, see
survival::coxph().
order_variables_by_significance(): Order by significance in regression model. The
number of columns of x should be greater than 1 for Cox models.