xuyiqing / gsynth

Generalized Synthetic Control Method
Other
131 stars 40 forks source link

Error with using cumuEff function #53

Open HuajieYang opened 3 years ago

HuajieYang commented 3 years ago

When I using cumuEff function, I come across an error: Error in apply(D, 2, function(vec) { : dim(X) must have a positive length In my dataset, there is only one treated unit. How can I fix this?

xuyiqing commented 3 years ago

Could you send us some sample data and code files such that we can debug?

Emails: yiqingxu@stanford.edu liulch@mit.edu

On Thu, Feb 4, 2021 at 1:22 AM HuajieYang notifications@github.com wrote:

When I using cumuEff function, I come across an error: Error in apply(D, 2, function(vec) { : dim(X) must have a positive length How can I fix this?

— 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/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PKGBMETTJA7GX3ZWOI53S5JRLVANCNFSM4XCOT2GA .

-- Yiqing Xu

Assistant Professor Department of Political Science Stanford University http://yiqingxu.org/