areg.center | R Documentation |
areg
From the Stata documentation: areg
begins by recalculating Y and X
and to have mean 0 within the groups specified by absorb()
. The
overall mean of each variable is then added back in.
areg.center(mm, grp, wts = NULL, grand_mean_center = FALSE)
mm |
Matrix of variables to center |
grp |
Group to center on |
wts |
Optional weights |
grand_mean_center |
Optional center output at |
Vector of group-centered values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.