| nonlinear_aggte | R Documentation |
Aggregates the group-time average treatment effects from
nonlinear_attgt into interpretable summary parameters.
Provides event-study (dynamic), group-level, calendar-time, and
overall ATT aggregations - each appropriate for nonlinear settings.
nonlinear_aggte(
obj,
type = c("dynamic", "group", "calendar", "simple"),
na.rm = TRUE,
min_periods = 1L,
weights = c("equal", "sample")
)
obj |
An object of class |
type |
Character. The aggregation type:
|
na.rm |
Logical. Remove NA ATT(g,t) estimates. Default TRUE. |
min_periods |
Integer. Minimum number of ATT(g,t) observations required for an aggregated estimate to be reported. Default 1. |
weights |
Character. Weighting scheme for aggregation:
|
An object of class nonlinear_aggte with slots:
Data frame with aggregated ATT, SE, and CI.
The aggregation type used.
Scalar overall ATT estimate.
SE for overall ATT.
set.seed(1)
dat <- sim_binary_panel(n = 400, nperiods = 8, prop_treated = 0.5)
res <- nonlinear_attgt(dat, yname = "y", tname = "period",
idname = "id", gname = "g",
outcome_model = "logit")
agg <- nonlinear_aggte(res, type = "dynamic")
plot(agg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.