collinearity_check {penppml} | R Documentation |
Checking for Perfect Multicollinearity
Description
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.
Usage
collinearity_check(
y,
x = NULL,
fes = NULL,
hdfetol,
colcheck_x_fes = TRUE,
colcheck_x = TRUE
)
Arguments
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 |
Value
A numeric vector containing the variables that pass the collinearity check.
[Package penppml version 0.2.3 Index]