Skip to contents

Helper to extract the overall ATT estimate and standard error from either pte_results or pte_emp_boot objects returned by ptetools::pte_default.

Usage

extract_att(res)

Arguments

res

Result object from didbc or ptetools::pte_default

Value

A list with components:

att

Overall ATT estimate

se

Standard error

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
#> 
# }