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

gmc(x)

Arguments

x

Vector to be grand mean centered

Value

Vector of grand mean centered values

Details

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