Learn R Programming

qte (version 2.0.0)

lou_gt: lou_gt

Description

Estimates the ATT and counterfactual distribution \(F_0 = F_{Y(0)|D=1}\) for a single (g,t) cell under lagged-outcome unconfoundedness. Called internally by lou_qtt via ptetools::pte().

Usage

lou_gt(
  gt_data,
  xformula = ~1,
  lagged_outcome_cov = TRUE,
  est_method = "ipw",
  ...
)

Value

A list from ptetools::attgt_noif with attgt (ATT) and extra_gt_returns containing F0 and F1 (weighted ECDFs of counterfactual and observed treated outcomes).

Arguments

gt_data

A gt_data_frame from ptetools::two_by_two_subset or ptetools::two_by_two_rcs_subset. Contains columns Y, D, name ("pre"/"post"), id, and .w.

xformula

One-sided covariate formula. Default ~1.

lagged_outcome_cov

Logical; if TRUE (default), the pre-period outcome is appended to xformula as an additional covariate. Requires panel data (unit ids present in both periods).

est_method

One of "ipw", "or", or "aipw". Default "ipw".

...

Additional arguments (ignored).