Skip to contents

Main Workflow

comp_did()
Estimate DiD Effects with Compositional Changes
att_estimate()
ATT Estimation Wrapper: Nuisance Estimation Plus doubly robust DiD
att_locpol_drdid()
Local-polynomial convenience alias for the ATT wrapper
as.data.frame(<compdid>)
Convert a compdid object to a one-row data frame
summary(<compdid>)
Summarize a compdid fit
confint(<compdid>)
Confidence interval for a compdid ATT
coef(<compdid>)
Extract the ATT from a compdid object
vcov(<compdid>)
Extract the variance matrix from a compdid object

Doubly Robust Estimators and Tests

drdid_nonstationary()
Doubly robust DID estimator (non-stationary, repeated cross-sections)
drdid_stationary()
Doubly robust DID estimator (stationary, repeated cross-sections)
drdid_stationarity_test()
Test comparing stationary and non-stationary doubly robust DiD estimators
drdid_cluster_bootstrap()
Cluster Bootstrap for DR DiD Estimators and the Stationarity Test
mboot_did()
Multiplier bootstrap for DID influence functions

Data Preparation

make_did_dp()
Build a validated dp object from raw user inputs
make_did_dpost()
Build the 4-cell treatment-by-time indicator matrix
groom_did_covariates()
Reorder and encode covariates into the internal mixed-data layout
validate_did_dp()
Validate a dp object for the doubly robust DiD estimation routines

Nuisance Estimation

compdid_cell_ps()
Simple Multinomial Cell-Probability Learner
compdid_cell_or()
Simple Cell-Specific Outcome-Regression Learner
locpol_ps_fit()
GPS estimation via local polynomial logistic regression
locpol_or_fit()
OR estimation via local polynomial regression
locpol_ps_bw()
Cross-validated bandwidth for the GPS model
locpol_or_bw()
Cross-validated bandwidth for the OR model

Simulation and Data

simulate_comp_did()
Simulate a User-Friendly Compositional-Change DiD Data Set
dgps_did()
Data-generating process for compositional-change DiD simulations
sequeira_bribes
Sequeira (2016) Tariff Liberalization and Bribery Data
sequeira_application_reference
Sequeira Application Paper-Final Reference

Reference Comparisons

twfe_did_rc()
Two-way fixed-effects DID for repeated cross-sections

Methods

print(<compdid_att>)
Print method for compdid ATT outputs
print(<drdid_cluster_bootstrap>)
Print method for DR DiD cluster-bootstrap results
print(<drdid_test>)
Print method for doubly robust DiD test results
print(<summary_compdid>)
Print method for compdid summaries
summary(<compdid_att>)
Summarize compdid ATT outputs