Skip to contents

Generic functions for panel data causal inference

aggte_obj()
Object to hold aggregated treatment effect results
attgt_if()
Class for holding returns from group-time specific estimates in settings when an influence function is returned
attgt_noif()
Class for holding returns from group-time specific estimates in settings when an influence function is not returned
attgt_pte_aggregations()
attgt_pte_aggregations
compute.pte()
compute.pte
dose_obj()
An object that holds results when there is a continuous treatment
group_time_att()
Class that holds causal effect parameter estimates across timing groups and time periods
gt_data_frame()
Checks if data satisfies criteria to be used in internal ptetools functions
overall_weights()
Computes weights across post-treatment groups and time periods to deliver overall treatment effect parameters
panel_empirical_bootstrap()
panel_empirical_bootstrap
process_att_gt()
process_att_gt
pte()
Panel Treatment Effects
pte_aggte()
Aggregates group-time specific effects into either an overall estimate or an event study
pte_attgt()
A flexible way to estimate ATT(g,t) using difference-in-differences or lagged outcome unconfoundedness, for a particular group and time period
pte_emp_boot()
Class to hold empirical bootstrap results
pte_params()
An object to carry around parameters in the ptetools package
pte_results()
Class for holding overall results with a staggered treatment, including an overall ATT and an event study
setup_pte()
A function for setting up data, etc. to use the ptetools package
setup_pte_basic()
Example function to setup data for using subsequent functions in the ptetools package

Group-time average treatment effects with a binary treatment

did_attgt()
Difference-in-differences estimates of ATT(g,t), given a group g and time period t.
pte_default()
Default, highly generic function for computing causal effects with staggered treatment adoption

Functions for dealing with a continuous treatment

pte_dose_results()
Class for holding results with a continuous treatment
process_dose_gt()
Processes results from each group and time period in settings with a continuous treatment.

Functions for dealing with distributional treatment effects

qott_pte_aggregations()
qott_pte_aggregations
qtt_pte_aggregations()
qtt_pte_aggregations

Functions for group-time specific subsets of data

keep_all_pretreatment_subset()
keep_all_pretreatment_subset
keep_all_untreated_subset()
keep_all_untreated_subset
two_by_two_subset()
two_by_two_subset

Plotting functions

ggpte()
The main plotting function in the ptetools package. It plots event studies.
ggpte_cont()
Plots dose-specific results in applications with a continuous treatment

Helper functions

crit_val_checks()
Performs sanity checks on critical values for forming uniform confidence bands
mboot2()
mboot2