R/subtyper.R
scale_predictors_from_formula.Rd
This function prepares a data frame for modeling by standardizing all continuous numeric predictors specified in a formula. It intelligently parses the formula to identify the outcome variable (which is never scaled) and all predictors. Each numeric predictor is then scaled to have a mean of 0 and a standard deviation of 1 (Z-scoring).
scale_predictors_from_formula(data, formula)
A data frame with the same dimensions as the input, but with the continuous numeric predictors scaled and centered.