Package: ptetools 1.0.0

ptetools: Panel Treatment Effects Tools

Generic code for estimating treatment effects with panel data. The idea is to break into separate steps organizing the data, looping over groups and time periods, computing group-time average treatment effects, and aggregating group-time average treatment effects. Often, one is able to implement a new identification/estimation procedure by simply replacing the step on estimating group-time average treatment effects. See several different examples of this approach in the package documentation.

Authors:Brantly Callaway [aut, cre]

ptetools_1.0.0.tar.gz
ptetools_1.0.0.zip(r-4.5)ptetools_1.0.0.zip(r-4.4)ptetools_1.0.0.zip(r-4.3)
ptetools_1.0.0.tgz(r-4.5-any)ptetools_1.0.0.tgz(r-4.4-any)ptetools_1.0.0.tgz(r-4.3-any)
ptetools_1.0.0.tar.gz(r-4.5-noble)ptetools_1.0.0.tar.gz(r-4.4-noble)
ptetools_1.0.0.tgz(r-4.4-emscripten)ptetools_1.0.0.tgz(r-4.3-emscripten)
ptetools.pdf |ptetools.html
ptetools/json (API)
NEWS

# Install 'ptetools' in R:
install.packages('ptetools', repos = c('https://bcallaway11.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bcallaway11/ptetools/issues

On CRAN:

3.95 score 3 stars 5 scripts 32 exports 88 dependencies

Last updated 9 days agofrom:23b1ff05c6. Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 14 2025
R-4.5-winOKFeb 14 2025
R-4.5-macOKFeb 14 2025
R-4.5-linuxOKFeb 14 2025
R-4.4-winOKFeb 14 2025
R-4.4-macOKFeb 14 2025
R-4.3-winOKFeb 14 2025
R-4.3-macOKFeb 14 2025

Exports:aggte_objattgt_ifattgt_noifattgt_pte_aggregationscompute.ptecrit_val_checksdid_attgtdose_objggpteggpte_contgroup_time_attgt_data_framekeep_all_pretreatment_subsetkeep_all_untreated_subsetmboot2overall_weightspanel_empirical_bootstrapprocess_att_gtprocess_dose_gtptepte_aggtepte_attgtpte_defaultpte_dose_resultspte_emp_bootpte_paramspte_resultsqott_pte_aggregationsqtt_pte_aggregationssetup_ptesetup_pte_basictwo_by_two_subset

Dependencies:BHbigmemorybigmemory.sriBMisccaretclasscliclockcodetoolscolorspacecpp11data.tablediagramdigestdplyrDRDIDe1071fansifarverfastglmforeachfuturefuture.applygenericsggplot2globalsgluegowergtablehardhatipredisobanditeratorsKernSmoothlabelinglatticelavalifecyclelistenvlubridatemagrittrMASSMatrixmgcvModelMetricsmunsellnlmennetnumDerivparallellypbapplypillarpkgconfigplyrpROCprodlimprogressrproxypurrrR6RColorBrewerRcppRcppArmadilloRcppEigenrecipesreshape2rlangrpartscalesshapesparsevctrssplines2SQUAREMstringistringrsurvivaltibbletidyrtidyselecttimechangetimeDatetrusttzdbutf8uuidvctrsviridisLitewithr

Readme and manuals

Help Manual

Help pageTopics
Aggregated Treatment Effects Classaggte_obj
Class for (g,t)-Specific Results with Influence Functionattgt_if
Class for (g,t)-Specific Results without Influence Functionattgt_noif
Aggregate Group-Time Average Treatment Effectsattgt_pte_aggregations
Heavy-Lifting for pte Functioncompute.pte
Sanity Checks on Critical Valuescrit_val_checks
Difference-in-differences for ATT(g,t)did_attgt
Class for Continuous Treatmentsdose_obj
ptetools Generic Plotting Functionggpte
Generic Plots with a Continuous Treatmentggpte_cont
Class for Estimates across Groups and Timegroup_time_att
Convert Data to Usable Formatgt_data_frame
Keep All Pre-Treatment Subsetkeep_all_pretreatment_subset
Keep All Untreated Subsetkeep_all_untreated_subset
Multiplier Bootstrapmboot2
Weights for Overall Aggregationoverall_weights
Panel Empirical Bootstrappanel_empirical_bootstrap
Process ATT(g,t) Resultsprocess_att_gt
Process Results with a Continuous Treatmentprocess_dose_gt
Panel Treatment Effectsptetools-package pte ptetools
Aggregates (g,t)-Specific Resultspte_aggte
General ATT(g,t)pte_attgt
Default, General Function for Computing Treatment Effects with Panel Datapte_default
Class for Continuous Treatment Resultspte_dose_results
Class for Empirical Bootstrap Resultspte_emp_boot
PTE Parameters Classpte_params
Class for PTE Resultspte_results
Aggregate Group-Time Quantile of the Treatment Effectqott_pte_aggregations
Aggregate Group-Time Quantile Treatment Effectsqtt_pte_aggregations
Generic Setup Functionsetup_pte
Basic Setup Functionsetup_pte_basic
Two Period Two Group Subsettwo_by_two_subset