Open IdaHjermitslev opened 4 years ago
Hi, @IdaHjermitslev . I also had this issue. Depending on the covariates, it tended to occur with covariates in my model, but not without them.
I wanted to control for covariates. I found the error never appeared when I added the following argument to my gsynth function call:
EM = TRUE,
So perhaps see if this works?
out <- gsynth(Y ~ D + X1 + X2, data = data, index = c("id", "time"),
force = "two-way", EM = TRUE, CV = TRUE, r = c(0, 5), se = TRUE, inference = "parametric",
nboots = 1000, parallel = FALSE)
Dear @michaeldgarber. Yes, that resolved my issue. Thank you so much! Any idea why my particular data needs the Expectation Maximisation algorithm?
Great! No, I'm not sure why, unfortunately, so perhaps it can be left open with this as a noted workaround...
Dear Professor Xu
Thank you for your work on the generalised synthetic control method.
I am trying to use the gsynth package as specified in the examples, but I am running into an error that I cannot resolve. I have verified that my dataset matches the examples provided in the package.
I am providing the dataset, example code and the error I am getting.
I am using R version 3.4.0 and gsynth version 1.1.4.
Code:
Error:
Data: data.rds.zip
I would greatly appreciate your help.