The documentation of gsynth mentions est.att.avg=inference for att.avg. but the slot does not exist!?
It seems it is instead called est.avg it is called?
|
est.avg <- t(as.matrix(c(att.avg, att.avg.j$se, att.avg.j$CI.l, att.avg.j$CI.u, att.avg.j$P))) |
library(gsynth)
#> ## Syntax has been updated since v.1.2.0.
#> ## Comments and suggestions -> yiqingxu@stanford.edu.
data(gsynth)
out <- gsynth(Y ~ D + X1 + X2, data = simdata, parallel = FALSE,
index = c("id","time"), force = "two-way",
CV = TRUE, r = c(0, 2), se = TRUE, inference ="parametric")
#> Cross-validating ...
#> r = 0; sigma2 = 1.84865; IC = 1.02023; PC = 1.74458; MSPE = 2.37280
#> r = 1; sigma2 = 1.51541; IC = 1.20588; PC = 1.99818; MSPE = 1.71743
#> r = 2; sigma2 = 0.99737; IC = 1.16130; PC = 1.69046; MSPE = 1.14540
#>
#> r* = 2
#>
#> Simulating errors .....Bootstrapping ...
#> ..
out$est.att.avg
#> NULL
out$est.avg
#> Estimate S.E. CI.lower CI.upper p.value
#> ATT.avg 5.543534 0.260916 5.032148 6.05492 0
Created on 2024-09-30 with reprex v2.1.1
The documentation of
gsynthmentionsest.att.avg=inference for att.avg.but the slot does not exist!?It seems it is instead called
est.avgit is called?gsynth/R/core.R
Line 2868 in 114fdce
Created on 2024-09-30 with reprex v2.1.1