Projects out the CSA (cross-sectional average) component from a matrix
of variables using the Frisch-Waugh-Lovell projection:
M_Z X = X - Z (Z'Z)^{-1} Z' X
Usage
.partial_out(X, Z)
Value
Numeric matrix of residuals after partialling out Z.
Arguments
X
Numeric matrix of variables to be partialled.
Z
Numeric matrix of CSA regressors (including intercept if present).