We are getting some unexpected errors (at least I think) in some case (not sure the pattern as I don't always get this) when balancing with respect to event time. Example:
library(did)
data(mpdta)
mw.attgt <- att_gt(yname = "lemp",
gname = "first.treat",
idname = "countyreal",
tname = "year",
xformla = ~1,
data = mpdta,
)
mw.dyn.balance <- aggte(mw.attgt, type = "dynamic", balance_e=1)
#> Error in rowSums(sapply(keepers, function(k) {: 'x' must be an array of at least two dimensions
We are getting some unexpected errors (at least I think) in some case (not sure the pattern as I don't always get this) when balancing with respect to event time. Example: