This simple function subtracts the mean from a variable rendering mean-centered variables.
variable or column of data to be centered
This is particularly useful in lm() with higher order terms as in moderation.
a numeric; mean centered 'x'
Thomas D. Fletcher firstname.lastname@example.org
1 2 3