New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collinearity diagnostics with fixed effects and more than two predictor variables #412
Comments
I have the exact same problem! I am using three-way fixed effects - error occurs for fepois and feols. I thought it might be connected to clustering, but so far nothing worked out. Anyone any idea what to try? |
Hello and thanks for the kind words :-) The problem is fixed, sorry for the long delay!! |
Hello, thank you for making this package available. Today, while running a model, I encountered this error. I also tested the code provided by @grlju and received the same error. Thanks.
|
Hi, you need to update to the current github version. Here are the current results: gravity_pois = fepois(Euros ~ log(dist_km) + Origin + Destination | Product + Year, trade)
collinearity(gravity_pois)
#> Checking Collinearity:
#> - simple with fixed-effects:..OK
#> - multiple:.............................OK
#> - multiple with fixed-effects.............................OK
#> [1] "No visible collinearity problem. (Doesn't mean there's none!)"
# example with collinear variable
data(base_did)
est = feols(y ~ x1 + treat | id + period, base_did)
collinearity(est)
#> [1] "Variable 'treat' is collinear with the fixed-effects `id`." |
Thanks! It worked. |
Hi Laurent,
Thanks for the great package. I am getting an error message when trying to run collinearity diagnostics with fixed effects and more than two predictor variables.
See this example:
I get the following error:
I tried to look at the source code, but it looks a bit too complicated for me.
Thanks,
Greg
The text was updated successfully, but these errors were encountered: