Function reference

The stacked R package and the stacked Stata command expose the same workflow: build a stacked dataset, estimate a Q-weighted event study, and visualize it. Each row below links to a reference page documenting the matched R function and Stata subcommand together.

Build

Page R Stata
Build a stack build_stack() stacked build
Kappa trade-offs kappa_trade_offs() stacked kappa
Propensity-score weights add_pscore_weights() stacked pscore

Estimate & visualize

Page R Stata
Stacked regression stackreg() stacked reg
Timing-group summary stack_summary() stacked summary
Event-study coefficients stack_coefs() r(att), r(table), e() after stacked reg
Weighted levels stack_levels() stacked levels
Plots stack_plot(), stack_plot_levels(), stack_plot_compare() stacked plot

Larger-than-memory

Page R Stata
DuckDB backend duck_src(), duck_collect(), duck_write_parquet(), duck_disconnect(), duck = TRUE stacked duckconnect, stacked build, parquet()

Data

Page R Stata
Bundled datasets data(medicaid) etc. stacked use medicaid