Skip to contents

Aggregate group-time F0/F1 distributions into QTT curves at the overall, group, and dynamic level. CDFs are mixed first, with the aggregation weights, and the mixtures are then inverted at all quantile levels in probs, avoiding the bias from averaging scalar QTTs. The mixtures are computed exactly, from every support point of the cells' CDFs (BMisc::combine_ecdfs() without y.seq), which must be step functions (such as those from BMisc::weighted_ecdf()).

Usage

qtt_pte_aggregations(attgt.list, ptep, extra_gt_returns)

Arguments

attgt.list

list of attgt results from compute.pte

ptep

pte_params object

extra_gt_returns

A place to return anything extra from particular group-time average treatment effect calculations. For DID, this might be something like propensity score estimates, regressions of untreated potential outcomes on covariates. For ife, this could be something like the first step regression 2sls estimates. This argument is also potentially useful for debugging.

Value

named list with elements overall_results, dyn_results, group_results (QTTs), att_results (a list with the overall, dynamic and group ATTs, aggregated with the same weights), qtt_minus_att_results (a list with overall, dynamic and group curves QTT(tau) - ATT, column qtt_minus_att), F0_overall and F1_overall