ebenmichael / augsynth

Augmented Synthetic Control Method
MIT License
148 stars 52 forks source link

GSYN model not working #83

Closed stestoni91 closed 1 year ago

stestoni91 commented 1 year ago

Hello,

I've tried to use augsynth with progfunc = 'GSYN', but I get the following error message:

Error in gsynth.default(data = long_df, Y = "obs", D = "trt", index = c("unit", : All treated units have been removed.

However, if I run gsynth::gsynth with the same data structure, I don't get the error.

Is this a known issue? Perhaps the data gets transformed in a wrong way within this library?

stestoni91 commented 1 year ago

So, the problem above came up with the toy dataset from the GeoLift library. I tried with a different dataset and it all works fine. Closing for now, but worth exploring more.