gmc: Grand mean center a vector

View source: R/gmc.R

gmcR Documentation

Grand mean center a vector

Description

Centers each value of a vector on the mean of that vector.

Usage

gmc(x)

Arguments

x

Vector to be grand mean centered

Details

For networks, useful for control variables (e.g., network size) in a model so that intercept represents average individual.

Value

Vector of grand mean centered values


kturetsky/sneasy documentation built on Aug. 29, 2022, 7:11 a.m.