| f_auto | R Documentation |
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 dataframe generated by f_auto_rules().
f_auto(df = NULL, response = NULL, predictors = NULL, quiet = FALSE, ...)
df |
(required; dataframe, tibble, or sf) A dataframe with responses
(optional) and predictors. Must have at least 10 rows for pairwise
correlation analysis, and |
response |
(optional, character string) Name of a response variable in |
predictors |
(optional; character vector or NULL) Names of the
predictors in |
quiet |
(optional; logical) If FALSE, messages are printed. Default: FALSE. |
... |
(optional) Internal args (e.g. |
function name
Other preference_order_tools:
f_auto_rules(),
f_functions()
data(
vi_smol,
vi_predictors_numeric,
vi_predictors_categorical,
vi_predictors
)
f_auto(
df = vi_smol,
response = "vi_numeric",
predictors = vi_predictors_numeric
)
f_auto(
df = vi_smol,
response = "vi_binomial",
predictors = vi_predictors_numeric
)
f_auto(
df = vi_smol,
response = "vi_categorical",
predictors = vi_predictors_categorical
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.