mean.center {QuantPsyc}R Documentation

Mean Center Variables

Description

This simple function subtracts the mean from a variable rendering mean-centered variables.

Usage

mean.center(x, ...)

Arguments

x variable or column of data to be centered
... to be determined

Details

This is particularly useful in lm() with higher order terms as in moderation.

Value

a numeric; mean centered 'x'

Author(s)

Thomas D. Fletcher tom.fletcher.mp7e@statefarm.com

Examples

data(USJudgeRatings)
usCONT <- mean.center(USJudgeRatings$CONT)
summary(usCONT)


[Package QuantPsyc version 1.3 Index]