lou_gt: lou_gt

View source: R/lou_qtt.R

lou_gtR Documentation

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",
  ...
)

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).

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).


qte documentation built on July 23, 2026, 5:13 p.m.