Open duncanhobbs opened 4 years ago
Hi, we'll try to fix it in about two weeks. Sorry about that!
On Tue, May 5, 2020 at 12:35 PM Duncan Hobbs notifications@github.com wrote:
I am using version 1.16 of gsynth.
I have run into errors trying to use the cluster option when bootstrapping standard errors.
out0 <- gsynth(turnout ~ policy_edr + policy_mail_in + policy_motor, data = turnout, index = c("abb","year"), se = TRUE, inference = "parametric", r = 0, CV = FALSE, force = "two-way", nboots = 1000, seed = 02139, cl = "abb" )
I get the following error:
Parallel computing ... Bootstrapping ... ... Error in eff.boot[, , j] <- boot.out[[j]]$eff : incorrect number of subscripts
The same code runs fine if I drop the cluster option.
It looks like the error comes from here https://github.com/xuyiqing/gsynth/blob/master/R/core.R#L2433.
I get the same error if I set force = "none" as an option as well.
Does the error happen because the cluster level is the same level as the fixed effects?
— 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/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PKGEPROY7ZQX76V7L3A3RQBTBDANCNFSM4MZ3F7IA .
-- Yiqing Xu
Assistant Professor Department of Political Science Stanford University http://yiqingxu.org/
I am using version 1.16 of gsynth.
I have run into errors trying to use the cluster option when bootstrapping standard errors.
out0 <- gsynth(turnout ~ policy_edr + policy_mail_in + policy_motor, data = turnout, index = c("abb","year"), se = TRUE, inference = "parametric", r = 0, CV = FALSE, force = "two-way", nboots = 1000, seed = 02139, cl = "abb" )
I get the following error:
The same code runs fine if I drop the cluster option.
It looks like the error comes from here.
I get the same error if I set
force = "none"
as an option as well.Does the error happen because the cluster level is the same level as the fixed effects?