Helper to extract the overall ATT estimate and standard error
from either pte_results or pte_emp_boot objects returned
by ptetools::pte_default.
Arguments
- res
Result object from
didbcorptetools::pte_default
Examples
# \donttest{
sim <- simulate_bad_controls(n = 500)
res <- didbc(
yname = "Y", gname = "G", tname = "period", idname = "id",
data = sim$data, bad_control_formula = ~X, xformula = ~Z
)
#> Warning: critical value for uniform confidence band is somehow smaller than
#> critical value for pointwise confidence interval...using pointwise
#> confidence interal
#> Warning: critical value for uniform confidence band is somehow smaller than
#> critical value for pointwise confidence interval...using pointwise
#> confidence interal
#> Warning: critical value for uniform confidence band is somehow smaller than
#> critical value for pointwise confidence interval...using pointwise
#> confidence interal
#> Warning: critical value for uniform confidence band is somehow smaller than
#> critical value for pointwise confidence interval...using pointwise
#> confidence interal
#> Warning: critical value for uniform confidence band is somehow smaller than
#> critical value for pointwise confidence interval...using pointwise
#> confidence interal
extract_att(res)
#> $att
#> [1] 1.57483
#>
#> $se
#> [1] 0.06555557
#>
# }
