Demeans the dependent variable, the regressors, and any user-supplied CSA source variables using the given grouping factors. Returns the panel with the affected numeric columns overwritten by their within transforms. Non-numeric columns and columns not listed in the target set are left untouched.
.absorb_apply(panel, target_vars, groups)The panel with the target columns demeaned.
A panel data.frame from .make_panel().
Character vector: column names to be demeaned.
A list of grouping factors from .absorb_resolve().