Skip to content
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

Strange error caused by units with few pre-treatment observations #14

Closed
ccepeda10 opened this issue Apr 5, 2021 · 4 comments
Closed

Comments

@ccepeda10
Copy link

Hi. I was trying to use the package with the "mc" estimator but I get repeated errors saying that:
Error in fect.cv(Y = Y, X = X, D = D, I = I, II = II, T.on = T.on, T.off = T.off, : Some units have too few pre-treatment observations. Try to remove them.

I've tried to remove all units with fewer than 10 pre-treatment periods but the problem persist. I also tried to estimate it with the latest version of gsynth and I also ran into similar problems. Extrangely enough, the 1.09 version of gsynth available in CRAN doesn't have the same problems when not using covariates. It still gives problems when using them though.
As eliminating the units with few pre-treatment periods does not solve the problem, the root cause seems to be something else, but I'm not able to deduce what could be causing this.

Thanks in advance!

@xuyiqing
Copy link
Owner

xuyiqing commented Apr 5, 2021 via email

@ccepeda10
Copy link
Author

ccepeda10 commented Apr 5, 2021

Thanks, I wasn't expecting such a quick response. Here is the view of the panel.
I'd be happy to mail you the code and data, but the emails appear to be 'censored'. They show like this ***@***.***.

Is there any other way to send you the samples?
imagen

@xuyiqing
Copy link
Owner

xuyiqing commented Apr 5, 2021 via email

@ccepeda10
Copy link
Author

I sent you the data and code.
Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants