xuyiqing / fect

fixed effect counterfactual estimators
Other
53 stars 20 forks source link

Error in est.att[i, 1] : subscript out of bounds #12

Closed teddddddy closed 1 year ago

teddddddy commented 3 years ago

Hello, thanks a lot for this excellent work. When I tried to run the FEct and IFEct, I kept obtaining the subscript out of bounds error. I am not sure what's the reason and how to fix it. I wonder if this is possible due to the unbalanced dataset? Since the treatment itself takes different times and directly imputes the DV, I have to drop observations within the treatment period, and this leads to an unbalanced dataset. Any help or information would be appreciated.

lzy318 commented 3 years ago

Can you send a sample dataset that reports the error to zyliu2016@nsd.pku.edu.cn? I will help to debug it, thanks!