Skip to contents

Mirrors the aggregation schemes available in did::aggte (overall ATT, by-cohort, by-calendar-time, by-event-time) but produces a tidy data.frame consumed by the rmorie / MRM downstream pipelines.

Usage

morie_did_aggregate_gt_att(
  gt_results,
  aggregation = "overall",
  time_col = "time",
  cohort_col = "cohort",
  att_col = "att",
  se_col = "std_error"
)

Arguments

gt_results

Output of morie_did_group_time_att.

aggregation

One of "overall" (default), "cohort", "calendar_time", "event_time".

time_col, cohort_col, att_col, se_col

Column-name overrides.

Value

A data frame with group, estimate, std_error, ci_lower, ci_upper.