synth-inference / synthdid

Synthetic difference in differences
https://synth-inference.github.io/synthdid
BSD 3-Clause "New" or "Revised" License
261 stars 96 forks source link

Encountering the error "nrow(Y) > N0 is not TRUE" after synthdid_estimate #122

Open WillC123Apple opened 3 months ago

WillC123Apple commented 3 months ago

Hi, I am trying to run the command synthdid_estimate() and I am encountering the error :

"_Error in synthdidestimate(setup1$Y, setup$N0, setup$T0) : nrow(Y) > N0 is not TRUE"

When I look the properties of setup1, nrow(setup1$Y) is 970 while setup$N0 is 937. Given this, I am not sure why I am encountering this error. I have tried to format the data as a balanced panel similar to the California dataset. Any help anyone can offer would be appreciated 👍

davidahirshberg commented 3 months ago

That's pretty odd. If you type 'nrow(setup1$Y) > setup$N0', what does it say?

On Thu, Apr 11, 2024 at 10:28 PM WillC123Apple @.***> wrote:

Hi, I am trying to run the command synthdid_estimate() and I am encountering the error :

" Error in synthdid_estimate(setup1$Y, setup$N0, setup$T0) : nrow(Y) > N0 is not TRUE"

When I look the properties of setup1, nrow(setup1$Y) is 970 while setup$N0 is 937. Given this, I am not sure why I am encountering this error. I have tried to format the data as a balanced panel similar to the California dataset. Any help anyone can offer would be appreciated 👍

— Reply to this email directly, view it on GitHub https://github.com/synth-inference/synthdid/issues/122, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANV7XFZ36NTZC5KYZTRCEDY45BEXAVCNFSM6AAAAABGDKXVIWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIZTQOJSGE2TAMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>