asheshrambachan / HonestDiD

Robust inference in difference-in-differences and event study designs
Other
175 stars 45 forks source link

"incorrect number of dimensions" #10

Closed taiwoakinyemi closed 2 years ago

taiwoakinyemi commented 2 years ago

Hi, While trying to create sensitivity results, I encountered an Error in {: task 1 failed - "incorrect number of dimensions." Please can you take a look? I have not been able to find the root error and resolve it. The code line I am running is below

ghana_DeltaSD_RobustResults = createSensitivityResults(betahat = m1.plm_EventStudy$betahat,

asheshrambachan commented 2 years ago

Could you provide some more information about each of the inputs that you are passing to the createSensitivityResults() function? E.g., what is the dimension of betahat, sigma and ghana_l_vec? What are the values of numPrePeriods and numPostPeriods?

taiwoakinyemi commented 2 years ago

Thanks a lot for the prompt response. I was using plm before, but I realized that coefIndex is empty. Later I used lfe, and everything looked okay until I got to creating sensitivity results again, and I got "Error in {: task 1 failed - "non-conformable arguments." I saw a similar problem on the forum, which required including all the periods to resolve the error. However, I am using all the post and pre-periods. Please help. I have included a screenshot of some of the input variables. image image image

taiwoakinyemi commented 2 years ago

I have figured out the problem, it has been resolved.