f_auto {collinear} | R Documentation |
Select Function to Compute Preference Order
Description
Internal function to select a proper f_...() function to compute preference order depending on the types of the response variable and the predictors. The selection criteria is available as a data frame generated by f_auto_rules()
.
Usage
f_auto(df = NULL, response = NULL, predictors = NULL, quiet = FALSE)
Arguments
df |
(required; data frame, tibble, or sf) A data frame with responses and predictors. Default: NULL. |
response |
(optional; character string or vector) Name/s of response variable/s in |
predictors |
(optional; character vector) Names of the predictors to select from |
quiet |
(optional; logical) If FALSE, messages generated during the execution of the function are printed to the console Default: FALSE |
Value
function name
See Also
Other preference_order_tools:
f_auto_rules()
,
f_functions()
,
preference_order_collinear()
Examples
f <- f_auto(
df = vi[1:1000, ],
response = "vi_numeric",
predictors = vi_predictors_numeric
)