View source: R/modeling_helpers.R
tof_create_recipe | R Documentation |
Create a recipe for preprocessing sample-level cytometry data for an elastic net model
tof_create_recipe(
feature_tibble,
predictor_cols,
outcome_cols,
standardize_predictors = TRUE,
remove_zv_predictors = FALSE,
impute_missing_predictors = FALSE
)
feature_tibble |
A tibble in which each row represents a sample- or patient-
level observation, such as those produced by |
predictor_cols |
Unquoted column names indicating which columns in the data contained in 'feature_tibble' should be used as predictors in the elastic net model. Supports tidyselect helpers. |
outcome_cols |
Unquoted column names indicating which columns in 'feature_tibble' should be used as outcome variables in the elastic net model. Supports tidyselect helpers. |
standardize_predictors |
A logical value indicating if numeric predictor columns should be standardized (centered and scaled) before model fitting. Defaults to TRUE. |
remove_zv_predictors |
A logical value indicating if predictor columns
with near-zero variance should be removed before model fitting using
|
impute_missing_predictors |
A logical value indicating if predictor columns
should have missing values imputed using k-nearest neighbors before model fitting (see
|
A recipe
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.