-
Notifications
You must be signed in to change notification settings - Fork 2
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
agg(did_res,:rel) BoundsError #29
Comments
Somehow there is some collinearity going on with the dummy variables and some of them are dropped when doing the OLS. Did you include additional regressors? |
Thanks for the rapid reply. I tried both with and without including additional regressors. If I include additional regressors only 4 items are missing from the coef vector rather than 23 without using additional regressors. I find this a bit strange - I would have thought more (or the same number of) coefficent etstimates would be missing if the issue was collinearity. I would compare to the R fixest package but run out of memory there. Will do some further testing and report back. |
It still sounds to me like something about collinearity. The way how the collinear columns are dropped may not be so "exact" if there is any collinearity going on. Some of the columns can be dropped in the following lines: DiffinDiffs.jl/lib/InteractionWeightedDIDs/src/procedures.jl Lines 469 to 474 in 86288bb
I would suggest trying to inspect exactly which columns are dropped and then take a look at the sample to get a better idea on how this can happens. There is a |
Hi cool package!
I just ran into an issue when trying to use the
agg()
function. The result of the@did
call (using dynamic treatment) has 6965 treatweights and treatcounts but only 6942 coefficients. Not sure how that happened but it leads to aBoundsError
when trying to aggregate.Any suggestions?
Thanks in advance
Edit: I set the cohort variable for the never treated group to the last t in my sample (same as in your example) and the data contains no missing values when passed to the
@did
function.The text was updated successfully, but these errors were encountered: