Grand mean centering of one or more variables
Usage
grand_center(variables, data, prefix = "gc.", std = F)
Arguments
- variables
Character vector of variables names
- data
Data frame
- prefix
Character, added to the befinning of centered variable name.
- std
Logical. Should the variable be standardized (divided by its std. deviation)?
Value
Returns an original data frame binded with the new centered variables