mean.center {QuantPsyc} | R Documentation |
This simple function subtracts the mean from a variable rendering mean-centered variables.
mean.center(x, ...)
x |
variable or column of data to be centered |
... |
to be determined |
This is particularly useful in lm() with higher order terms as in moderation.
a numeric; mean centered 'x'
Thomas D. Fletcher tom.fletcher.mp7e@statefarm.com
data(USJudgeRatings) usCONT <- mean.center(USJudgeRatings$CONT) summary(usCONT)