order_variables {mfp2} | R Documentation |
Helper to order variables for mfp2 algorithm
Description
To be used in fit_mfp()
.
Usage
order_variables(xorder = "ascending", x = NULL, ...)
order_variables_by_significance(
xorder,
x,
y,
family,
weights,
offset,
strata,
method,
control,
nocenter
)
Arguments
xorder |
a string determining the order of entry of the covariates
into the model-selection algorithm. The default is |
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 |
y |
a vector of responses for glms, or a |
family |
a character string naming a family function supported by
|
weights , offset |
parameters for both glm and Cox models, see either
|
strata , method , control , nocenter |
Cox model specific parameters, see
|
Value
A vector of the variable names in x
, ordered according to xorder
.
Functions
-
order_variables_by_significance()
: Order by significance in regression model. The number of columns ofx
should be greater than 1 for Cox models.