collinearity_check | R Documentation |
collinearity_check
checks for perfect multicollinearity in a model with high-dimensional
fixed effects. It calls lfe::demeanlist
in order to partial out the fixed effects, and then
uses stats::lm.wfit
to discard linearly dependent variables.
collinearity_check(
y,
x = NULL,
fes = NULL,
hdfetol,
colcheck_x_fes = TRUE,
colcheck_x = TRUE
)
y |
Dependent variable (a numeric vector). |
x |
Regressor matrix. |
fes |
List of fixed effects. |
hdfetol |
Tolerance for the centering, passed on to |
colcheck_x_fes |
Logical. If |
colcheck_x |
Logical. If |
A numeric vector containing the variables that pass the collinearity check.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.