synth-inference / synthdid

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

How to calculate se using bootstrap method #89

Closed jaderjuca closed 2 years ago

jaderjuca commented 2 years ago

When I run se = sqrt(vcov(tau.hat, method='bootstrap')) i get NA, the only method that seems to work is the 'placebo'.

I also tried the following: vcov.synthdid_estimate(tau.hat,method = "bootstrap", replications = 200)

davidahirshberg commented 2 years ago

How many treated units do you have? On Apr 25, 2022, 8:55 AM -0400, jaderjuca @.***>, wrote:

When I run se = sqrt(vcov(tau.hat, method='bootstrap')) i get NA, the only method that seems to work is the 'placebo'. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jaderjuca commented 2 years ago

I made a mistake while coding and was using only 1 treated. Now it's working properly with 3 treated units. Thanks for the reply and sorry for the inconvenience.