Convenience accessor for the ground-truth average treatment effect on the
treated of a simulated panel. It reads the per-cell true effect — the tau
column produced by sim_semisynthetic(), or y - y0 for a sim_panel()
panel — and averages it over the actively treated cells, giving the number
estimators are trying to recover. Pair it with panel_compare() or
panel_rmse() to score estimates against the truth without re-deriving it by
hand.
Examples
real <- sim_panel(N = 16, T = 10, n_treated = 0L, att = 0, seed = 1)
ss <- sim_semisynthetic(real, "y", "id", "t",
n_treated = 6, t0 = 8, att = 3, seed = 2)
true_att(ss) # 3
#> [1] 3