ssdavenport / microsynth

Synthetic controls for micro-level data
16 stars 9 forks source link

Keep getting "Error in if (dum <= dum1 + 1) { : missing value where TRUE/FALSE needed" #24

Open cach-dies opened 2 years ago

cach-dies commented 2 years ago

Hello, I am trying to run my own synthetic control with my own data but I keep getting Error in if (dum <= dum1 + 1) { : missing value where TRUE/FALSE needed and it's not clear to me why this is happening or what this error means. My data is functionally the same a the one used on the introduction vignette except, I am not using any covariates. Hence, I've set match.covar = FALSE does this mean covariates are necessary? or is something else the problem?

I've also found this post on stack overflow. However the solution provided there is to use as.data.frame to convert data into a data.frame which my data all ready is, and so the issue persists.