scale_continuous_predictors {basecamb} | R Documentation |
Scale continuous predictors
Description
This function linearly scales variables in data objects according to a data dictionary. The data dictionary has at least two columns, "variable" and "scaling_denominator". "Variable" is divided by "scaling_denominator".
Usage
scale_continuous_predictors(data, scaling_dictionary)
Arguments
data |
a data object with variables. |
scaling_dictionary |
a data.frame with two columns that are called "variable" and "scaling_denominator". |
Value
The data with the newly scaled 'variables'.
Author(s)
Till D. Best
[Package basecamb version 1.1.5 Index]