xuyiqing / gsynth

Generalized Synthetic Control Method
Other
134 stars 41 forks source link

"All treated units have been removed" error #21

Closed syed-osman closed 3 years ago

syed-osman commented 6 years ago

Hi, I have data from 2008 to 2015 and pre-treatment period is 2008-2010. I get the following error message.

Error in gsynth.default(formula = NULL, data = data, Y = Yname, D = Dname, : All treated units have been removed

Any suggestion? Thanks in advance! Syed

xuyiqing commented 6 years ago

Hi Syed,

I think it is because there are too few pre-treatment periods. You can check out trajectory balancing http://yiqingxu.org/software.html to deal with this problem if you are interested.

Best, Yiqing

On Thu, Sep 27, 2018 at 4:18 PM syed-osman notifications@github.com wrote:

Hi, I have data from 2008 to 2015 and pre-treatment period is 2008-2010. I get the following error message.

Error in gsynth.default(formula = NULL, data = data, Y = Yname, D = Dname, : All treated units have been removed

Any suggestion? Thanks in advance! Syed

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xuyiqing/gsynth/issues/21, or mute the thread https://github.com/notifications/unsubscribe-auth/AHT1GNKBToBPnp31Z353qywsHm9TkCEBks5ufTKUgaJpZM4W9Yxb .

-- Yiqing Xu

Assistant Professor Department of Political Science University of California, San Diego http://yiqingxu.org/

mervedmrl commented 5 years ago

Hi, Is there a way to go forward with it anyways?

xuyiqing commented 3 years ago

Probably need to gatter more data (units with long pretreatment periods).