-
Notifications
You must be signed in to change notification settings - Fork 4
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
boottest results change when the type of the variable used in clustid change from integer to character #14
Comments
Hi Timothée, Thanks for reporting this issue, and sorry for taking a couple of days to respond. I am currently on vacation and have not yet explored the issue in much detail, but I am convinced that you have found a bug, but it is not related to the type of the clustering variable but the type of the fixed effect. I believe that the issue is instead related to the pre-processing of the fixed effect in your regression. If you estimate your suggested models without fixed effects, both p-values will be equal.
My guess for what happens is that I have not properly protected the fixed effects variable to be of type character. If you feed a numeric or integer as a fixed effect into I will have a closer look at this in the next days and then get back to you. Best, Alex |
…ffects in either `felm()` or `feols()` are not factor variables in the original data. associated tests in inst/tinytest/tests_numeric_fe_clusters.R
Hi, with commit 97b9b70 , |
With commit 56efefb, Updated tests can be found in https://github.com/s3alfisc/fwildclusterboot/blob/master/inst/tinytest/test_numeric_fe_clusters.R.. |
The updates are now on its way to CRAN with package version 0.3.7. I will keep this issue open for a while so that it remains visible. |
Hello,
I am reproducing here a problem i have in real life.
TLDR :
-I have a fixed-effect model with one fixed-effect for variable_a
-I want to use wild boostrap CI using two-ways clustered standard errors (variable_a and variable_b)
-When i change the type of variable_a (from character to integer), it changes the results significantly
I can reproduce here the example with the switch from integer to numeric, but not from integer to character.
My understanding is that the variable works as index, and thus the type should not impact the result.
I don't know which one to use.
My apologies if it stems from a misunderstanding of what is happening under the hood.
Best regards,
Timothée
The text was updated successfully, but these errors were encountered: