meanCenter | R Documentation |
This simple function subtracts the mean from a variable rendering mean-centered variables.
meanCenter(x)
x |
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 t.d.fletcher05@gmail.com
data(USJudgeRatings) usCONT <- meanCenter(USJudgeRatings$CONT) summary(usCONT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.