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 [email protected]
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.