-
Notifications
You must be signed in to change notification settings - Fork 29
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
issues with clustering - insufficient observations #36
Comments
Same problem occurred. Is there a way to figure it out? @nikhilklath @sergiocorreia Thx. |
What do you get if you a) Run ivreghdfe with the I'm asking this because I suspect you might have insufficient observations if there are a lot of singletons. |
What I found to work finally was that I unstalled all the packages ( |
uninstall and use |
I also have the same issue when using ivreghdfe with the absorb and cluster options; it reports insufficient observations and no singleton. Furthermore, there is no such issue now that the cluster option has been removed. |
Fixed by sergiocorreia/reghdfe@e73880c ! |
@sergiocorreia , I needed some advice on clustering while using ivreghdfe.
My code is -
ivreghdfe yvar (ever_win = true_treat), absorb(strata gender#batch city#batch yrs_school#batch age#batch mult_apply_hh#batch) vce(cluster unique_id)
I have 78,670 observations with about 42000 distinct unique_ids. The FEs in absorb() amount to about 3000 dummies.
The error I get is
insufficient observations
.When I remove the vce(cluster) option, the code runs properly. Could you help out with what I must be doing wrong here?
The text was updated successfully, but these errors were encountered: