xuyiqing / fect

fixed effect counterfactual estimators
Other
53 stars 20 forks source link

Error when creating equivalence plots #17

Closed danrthomas closed 3 years ago

danrthomas commented 3 years ago

When producing equivalence plots, the error "Error in $<-.data.frame(*tmp*, "time", value = c(-28L, -27L, -26L, : replacement has 116 rows, data has 58" is returned. The error can be replicated with this code:

library(fect)
data(fect)

out <- fect(Y ~ D + X1 + X2, data = simdata1, index = c("id","time"), 
     force = "two-way", CV = TRUE, r = c(0, 5), se = TRUE,  
     nboots = 200, parallel = TRUE)

plot(out, type="equiv")

Thanks in advance!

xuyiqing commented 3 years ago

We're in the process of revising this functionality. I'm very sorry for your inconvenience. We'll get it to work asap. Meanwhile, could you try an earlier version instead? fect_0.3.1.tar.gz