Software

This page lists software packages in R, Stata, and Python for the tasks that the methods guides describe. The packages are arranged by topic. Choose a topic from the contents above to see its packages, each with one sentence on what the package does and the command that installs it. A reader who clicks the heading Package or Latest release sorts that topic’s table by name or by release date. A second click reverses the order.

EGAP has not tested every package listed here. EGAP assembled the list in October 2026 from three sources: the R packages that the guides use, an earlier EGAP list of software, and three CRAN Task Views, which are lists of R packages kept by volunteers. For each package, EGAP checked that the archive linked from its name still distributes it, and recorded the date of its latest release where the archive gives one. The one-sentence descriptions were drafted from each package’s own title and description, and EGAP has not yet checked all of them.

Three notes appear beside some packages:

To suggest a package or correct an entry, open an issue or a pull request on GitHub. The list is the file software/catalog.csv in that repository.

Designing a study

Planning a study and computing power

Related guides: Statistical Power, Pilot Studies, Pre-Analysis Plans

Package Latest release What it does Install Notes
clusterPower
R
Power for cluster-randomized and crossover trials by formula or simulation. remotes::install_github("Kenkleinman/clusterPower")
cosa
R
2021-11-20 Power and optimal allocation for multilevel randomized trials and discontinuity designs. install.packages("cosa")
CRTSize
R
2023-02-22 Sample size for cluster randomized trials, binary or continuous outcomes. install.packages("CRTSize")
DeclareDesign
R
2026-10-25 Declares and diagnoses research designs by simulation, including power. install.packages("DeclareDesign") Guide: Statistical Power
Learning Days
EGAP author: Coppock, Blair, Cooper, Humphreys
DesignLibrary
R
2021-10-18 Ready-made DeclareDesign designs for one-line power and design diagnosis. install.packages("DesignLibrary") Learning Days
EGAP author: Blair, Cooper, Coppock, Humphreys, Medina
fabricatr
R
2026-10-21 Simulates data, including potential outcomes, to diagnose a design before fielding. install.packages("fabricatr") Learning Days
EGAP author: Coppock, Blair, Cooper, Humphreys
ICC
R
2022-05-20 Estimates the intraclass correlation, which power calculations for cluster-randomized designs need. install.packages("ICC") Learning Days
odr
R
2026-02-11 Power and optimal sample allocation for single and multilevel experiments. install.packages("odr")
powerLATE
R
2024-05-29 Power calculations when estimating the LATE under noncompliance. install.packages("powerLATE") Guide: Local Average Treatment Effect
PowerUpR
R
Power and sample size for multilevel and cluster randomized experiments. remotes::install_github("metinbulus/PowerUpR")
presize
R
2026-03-11 Sample size chosen by target confidence interval width, many estimands install.packages("presize")
pwr
R
2020-03-17 Basic power calculations for t-tests, proportions, correlations, and more. install.packages("pwr") Learning Days
pwrss
R
2026-10-14 Power, sample size, and minimum detectable effect calculations for common tests. install.packages("pwrss") Learning Days
simglm
R
2026-09-01 Simulation-based power for regression and multilevel designs, including missing data install.packages("simglm")
WebPower
R
2023-10-13 Basic and advanced power analysis for many designs and models. install.packages("WebPower")
cluster2
Stata
2020-04-07 Power analysis for two-level cluster randomized trials. ssc install cluster2
cluster3
Stata
2020-04-07 Power analysis for cluster randomized trials with up to three levels. ssc install cluster3
clustersampsim
Stata
2020-05-16 Simulates sample size requirements for cluster randomized trials. ssc install clustersampsim
nonparmde
Stata
2012-12-09 Minimum detectable effect for randomized experiments. ssc install nonparmde EGAP author: Middleton
pcpanel
Stata
2021-11-14 Power calculations for randomized experiments with panel data and serial correlation. ssc install pcpanel
powercal
Stata
2012-03-31 General power and sample size calculations. ssc install powercal
powerclus
Stata
2017-11-17 Sample size and cluster size for cluster randomized designs. ssc install powerclus

Random assignment, including blocked, cluster, and adaptive designs

Related guides: Randomization, Cluster Randomization, Multisite or Block-Randomized Trials, Adaptive Experimental Design

Package Latest release What it does Install Notes
blockTools
R
2025-01-22 Blocks units on covariates and randomly assigns treatment within blocks. install.packages("blockTools") Guide: Randomization
Learning Days
EGAP author: Moore
cvcrand
R
2023-09-17 Constrained randomization and permutation tests for few-cluster trials. install.packages("cvcrand")
quickblock
R
2024-07-31 Fast threshold blocking for assigning treatments in large experiments. install.packages("quickblock") EGAP author: Sekhon
randomizr
R
2026-08-27 Random assignment for common designs, including blocked and clustered. install.packages("randomizr") Guide: 10 Things on Your Checklist for Analyzing an Experiment, Hypothesis Testing, Measurement in Experiments, Missing Data, Multiple Comparisons, Randomization
Learning Days
EGAP author: Coppock, Cooper, Blair, Humphreys
RCT
R
2024-02-21 Stratified assignment, power, balance tables, and impact regressions for RCTs. install.packages("RCT")
cvcrand
Stata
2025-10-31 Covariate-constrained randomization for cluster randomized trials, with a permutation test (cptest) for the analysis. ssc install cvcrand
ralloc
Stata
2018-01-28 Generates randomized allocation sequences, including blocked and stratified designs. ssc install ralloc
randomize
Stata
2017-06-01 Random assignment with blocking, balance checks, and rerandomization. ssc install randomize
randomizr
Stata
2017-09-19 Implements standard random assignment procedures, Stata port of randomizr. ssc install randomizr
randtreat
Stata
2017-04-13 Random assignment with unequal treatment shares and handling of misfits. ssc install randtreat
stratarand
Stata
2015-02-22 Stratified random assignment. ssc install stratarand

Sampling

Related guides: Sampling

Package Latest release What it does Install Notes
rsz
Stata
2017-02-09 Draws stratified, systematic, or PPS samples. ssc install rsz

Analyzing an experiment

Checking balance

Related guides: Randomization, 10 Things on Your Checklist for Analyzing an Experiment, Cluster Randomization

Package Latest release What it does Install Notes
cobalt
R
2026-08-25 Balance tables and plots for matched, weighted, or randomized groups. install.packages("cobalt")
equivtest
R
Equivalence tests for covariate balance and placebo checks. remotes::install_github("ekhartman/equivtest") EGAP author: Hartman, Hidalgo
RItools
R
2025-05-17 Omnibus randomization test of covariate balance across treatment groups. install.packages("RItools") Guide: Cluster Randomization
Learning Days
EGAP author: Bowers
tableone
R
2022-04-15 Baseline covariate table with standardized mean differences by group install.packages("tableone")
balancetable
Stata
2018-11-23 Builds covariate balance tables exportable to LaTeX or Excel. ssc install balancetable
stddiff
Stata
2022-12-17 Standardized differences to check covariate balance. ssc install stddiff
xbalance
Stata
2009-01-23 Standardized differences and omnibus balance test for stratified comparisons. ssc install xbalance EGAP author: Bowers

Estimating average effects and their standard errors

Related guides: 10 Things on Your Checklist for Analyzing an Experiment, Covariate Adjustment, Reading a Regression Table, 10 Types of Treatment Effect You Should Know About

Package Latest release What it does Install Notes
eefAnalytics
R
2025-01-09 Analyzes simple, cluster, and multisite randomized trials of education programs. install.packages("eefAnalytics")
estimatr
R
2026-10-10 Difference in means, Lin regression, IV, with robust and clustered standard errors. install.packages("estimatr") Guide: Hypothesis Testing, Measurement in Experiments, Missing Data
Learning Days
EGAP author: Coppock, Blair, Cooper, Humphreys, Medina
fixest
R
2026-06-26 Fast regressions with fixed effects and clustered standard errors. install.packages("fixest")
lme4
R
2026-10-23 Fits multilevel (mixed-effects) regression models, for example for outcomes in cluster-randomized trials. install.packages("lme4") Guide: Cluster Randomization
Learning Days
lmtest
R
2022-03-21 Tests on regression coefficients, and with sandwich reports robust or clustered standard errors. install.packages("lmtest") Guide: Cluster Randomization
Learning Days
marginaleffects
R
2026-09-03 Turns fitted models into treatment effect contrasts with standard errors. install.packages("marginaleffects")
modelsummary
R
2026-02-13 Side-by-side regression tables of estimates, plus balance tables. install.packages("modelsummary") Guide: 10 Things on Your Checklist for Analyzing an Experiment
multiwayvcov
R
2016-05-05 Standard errors clustered on more than one variable for regression estimates. install.packages("multiwayvcov") Learning Days
propertee
R
2026-07-20 Estimates average treatment effects, with optional covariance adjustment from a model fit to other data, in blocked and cluster-randomized designs. install.packages("propertee") Learning Days
sandwich
R
2026-08-03 Robust and clustered standard errors for regression estimates. install.packages("sandwich") Guide: Cluster Randomization
Learning Days
pdslasso
Stata
2024-08-06 Lasso picks covariates for adjustment in OLS or IV effect estimates. ssc install pdslasso
rctable
Stata
2026-09-26 Builds treatment effect tables for randomized controlled trials. ssc install rctable
reghdfe
Stata
2026-01-11 Regression with many fixed effects and clustered standard errors. ssc install reghdfe

Randomization inference

Related guides: Randomization Inference, 10 Randomization Inference Procedures with ri2, Hypothesis Testing

Package Latest release What it does Install Notes
CMRSS
R
Randomization inference for quantiles of individual treatment effects in completely randomized and stratified experiments. remotes::install_github("bowers-illinois-edu/CMRSS") EGAP author: Bowers
coin
R
2026-09-30 Permutation tests for two-sample, K-sample, and blocked designs. install.packages("coin") Guide: Hypothesis Testing, Randomization Inference
Learning Days
Counternull
R
2024-02-24 Fisher exact p-values, Fisher intervals, and counternull sets for experiments. install.packages("Counternull")
ri2
R
2026-07-29 Randomization inference for simple and complex randomized designs. install.packages("ri2") Guide: 10 Things on Your Checklist for Analyzing an Experiment, Hypothesis Testing, Randomization Inference, 10 Randomization Inference Procedures with ri2
Learning Days
EGAP author: Coppock
riposte
R
Randomization tests that combine several versions of an outcome (raw values, ranks, distances) to find effects a difference of means misses. remotes::install_github("bowers-illinois-edu/riposte") EGAP author: Bowers
RItools
R
2025-05-17 Omnibus randomization test of covariate balance across treatment groups. install.packages("RItools") Guide: Cluster Randomization
Learning Days
EGAP author: Bowers
cvcrand
Stata
2025-10-31 Covariate-constrained randomization for cluster randomized trials, with a permutation test (cptest) for the analysis. ssc install cvcrand
randcmd
Stata
2020-05-02 Randomization inference p-values for regression estimates in experiments. ssc install randcmd
ritest
Stata
2020-05-21 General randomization inference and permutation tests for any estimator. ssc install ritest

Multiple comparisons and indices

Related guides: Multiple Comparisons, Indices

Package Latest release What it does Install Notes
multcomp
R
2026-08-21 Simultaneous tests and intervals for many contrasts, e.g., multi-arm trials. install.packages("multcomp") Learning Days

Heterogeneous effects and generalizing to other populations

Related guides: Heterogeneous Treatment Effects, External Validity

Package Latest release What it does Install Notes
bartCause
R
2025-12-11 BART estimates of average and subgroup treatment effects. install.packages("bartCause")
grf
R
2026-03-04 Causal forests estimate how treatment effects vary across units. install.packages("grf")
hettx
R
2026-02-24 Tests whether treatment effects vary and measures explained variation in experiments. install.packages("hettx") EGAP author: Feller
interflex
R
2026-09-21 Diagnoses and estimates how treatment effects vary with a moderator. install.packages("interflex") EGAP author: Hainmueller
tidyhte
R
2025-07-29 Machine-learning estimates of heterogeneous effects in experiments. install.packages("tidyhte") EGAP author: Dimmery

Noncompliance and the local average treatment effect

Related guides: Local Average Treatment Effect

Package Latest release What it does Install Notes
AER
R
2026-07-11 Data and functions from Applied Econometrics with R, including ivreg() for two-stage least squares with random assignment as the instrument. install.packages("AER") Guide: Local Average Treatment Effect
Learning Days
bpbounds
R
2026-07-13 Nonparametric bounds on effects under imperfect compliance with randomized instrument. install.packages("bpbounds")
ivdesc
R
2025-07-22 Describes covariates of compliers, never-takers, and always-takers. install.packages("ivdesc")
ivreg
R
2026-07-10 Two-stage least squares, e.g., complier effects using random assignment as instrument. install.packages("ivreg")
powerLATE
R
2024-05-29 Power calculations when estimating the LATE under noncompliance. install.packages("powerLATE") Guide: Local Average Treatment Effect
ThreeGroups
R
2015-09-10 Estimates effects in placebo-controlled experiments with noncompliance install.packages("ThreeGroups")
ivdesc
Stata
2021-03-19 Describes characteristics of compliers and noncompliers in IV analyses. ssc install ivdesc

Missing data and attrition

Related guides: Missing Data

Package Latest release What it does Install Notes
attrition
R
2026-09-18 Bounds and double sampling for attrition in randomized experiments. install.packages("attrition") Guide: Missing Data
EGAP author: Coppock, Gerber, Green
mice
R
2025-12-10 Multiple imputation of missing covariates and outcomes by chained equations. install.packages("mice")
attregtest
Stata
2025-05-08 Regression-based tests for differential attrition in experiments. ssc install attregtest

Spillovers

Related guides: Spillovers

Package Latest release What it does Install Notes
interference
R
Design-based estimation of spillover effects in experiments. remotes::install_github("szonszein/interference") EGAP author: Samii, Aronow
RCT2
R
2022-10-18 Design and analysis of two-stage experiments with spillover effects. install.packages("RCT2") EGAP author: Imai
SpatialEffect
R
Design-based inference for spatial spillover effects in experiments. remotes::install_github("YeWang1576/SpatialEffectPackage/SpatialEffect") EGAP author: Samii

Mechanisms and mediation

Related guides: Mechanisms

Package Latest release What it does Install Notes
CausalQueries
R
2026-09-01 Bayesian causal models for questions about effects and mechanisms, from experimental or observational data. install.packages("CausalQueries") Learning Days
EGAP author: Cooper, Humphreys, Medina
DirectEffects
R
2024-10-04 Controlled direct effects by sequential g-estimation for mechanisms. install.packages("DirectEffects")
mediation
R
2025-06-07 Causal mediation analysis with sensitivity analysis. install.packages("mediation") EGAP author: Yamamoto, Imai
paramed
Stata
2013-04-26 Causal mediation analysis with parametric regression models. ssc install paramed

Measurement and data collection

Special survey designs: list experiments, randomized response, conjoint, endorsement

Related guides: Survey Experiments

Package Latest release What it does Install Notes
cjoint
R
2026-05-19 Estimates average marginal component effects in conjoint experiments. install.packages("cjoint") EGAP author: Hainmueller, Yamamoto
endorse
R
2022-05-02 Analyzes endorsement experiments measuring support for sensitive political actors. install.packages("endorse") EGAP author: Imai
list
R
2024-01-10 Analyzes list experiments for sensitive questions. install.packages("list") EGAP author: Blair, Imai, Coppock
rr
R
2024-01-16 Analysis and power for randomized response survey items. install.packages("rr") EGAP author: Blair, Zhou, Imai
conjoint
Stata
2021-05-24 Analyzes and plots results of conjoint survey experiments. ssc install conjoint

Measurement

Related guides: Measurement in Experiments, Indices

Package Latest release What it does Install Notes
mirt
R
2026-10-06 Item response theory models for scales and latent traits. install.packages("mirt") Guide: Indices

Field work and data management

Related guides: Survey Implementation, Project Workflow, Survey Design

Package Latest release What it does Install Notes
iefieldkit
Stata
2023-08-02 World Bank DIME tools for survey data quality checks during fieldwork. ssc install iefieldkit
ietoolkit
Stata
2026-03-31 World Bank DIME commands for evaluation workflow, including balance tables. ssc install ietoolkit

Combining studies

Meta-analysis

Related guides: Conducting a Meta-Analysis

Package Latest release What it does Install Notes
meta
R
2026-05-25 Standard fixed and random effects meta-analysis with forest plots. install.packages("meta")
metafor
R
2026-09-15 Comprehensive meta-analysis and meta-regression across studies or sites. install.packages("metafor")

Observational designs

These packages implement the strategies for observational data that the guide 10 Strategies for Figuring out whether X Causes Y describes.

Matching and weighting

Package Latest release What it does Install Notes
AIPW
R
2026-04-12 Doubly robust weighted estimates of average effects using machine learning. install.packages("AIPW")
CBPS
R
2025-12-01 Propensity scores estimated to maximize covariate balance. install.packages("CBPS") EGAP author: Imai, Hazlett
cem
R
2022-09-08 Coarsened exact matching for observational data. install.packages("cem")
designmatch
R
2026-02-20 Optimization matching for balanced samples, also pairing units before randomization. install.packages("designmatch")
ebal
R
2026-04-29 Entropy balancing weights make control group match treated covariate moments. install.packages("ebal") EGAP author: Hainmueller
Matching
R
2024-10-14 Propensity score and genetic matching with balance diagnostics. install.packages("Matching") EGAP author: Sekhon
MatchIt
R
2026-09-26 Matching on covariates or propensity scores to build comparable groups. install.packages("MatchIt") EGAP author: Imai
optmatch
R
2024-09-19 Optimal pair and full matching of treated and control units install.packages("optmatch")
PSweight
R
2025-07-22 Propensity score weighting, including overlap weights, for causal effects. install.packages("PSweight")
twang
R
2025-12-23 Propensity score and nonresponse weighting with boosting, plus balance diagnostics install.packages("twang")
WeightIt
R
2026-09-30 Balancing weights for observational studies with many methods and diagnostics install.packages("WeightIt")
cem
Stata
2020-02-15 Coarsened exact matching for observational comparisons. ssc install cem
ebalance
Stata
2026-05-03 Entropy balancing weights to equate covariates across groups. ssc install ebalance EGAP author: Hainmueller
kmatch
Stata
2020-09-19 Matching, entropy balancing, and weighting in one command. ssc install kmatch
psmatch2
Stata
2018-02-01 Propensity score and Mahalanobis matching with common support and balance checks. ssc install psmatch2

Before/after comparisons, difference-in-differences, and synthetic control

Package Latest release What it does Install Notes
augsynth
R
Augmented synthetic control for policy evaluations with panel data. remotes::install_github("ebenmichael/augsynth")
bacondecomp
R
2020-01-24 Decomposes two-way fixed effects difference-in-differences with staggered timing. install.packages("bacondecomp")
CausalImpact
R
2025-09-26 Estimates an intervention’s effect on a time series against a modeled counterfactual. install.packages("CausalImpact")
did
R
2026-07-08 Difference-in-differences with multiple periods and staggered treatment timing. install.packages("did")
did2s
R
2026-03-05 Two-stage difference-in-differences and event studies with staggered timing. install.packages("did2s")
DIDmultiplegt
R
2026-02-17 Difference-in-differences with staggered treatment across groups and periods. install.packages("DIDmultiplegt")
etwfe
R
2026-03-23 Extended two-way fixed effects for staggered difference-in-differences. install.packages("etwfe")
eventstudyr
R
2026-10-01 Estimates and plots linear panel event studies with pre-trend tests. install.packages("eventstudyr")
gsynth
R
2026-03-27 Generalized synthetic control for multiple treated units and staggered timing. install.packages("gsynth")
PanelMatch
R
2026-10-01 Matching for panel data, generalizing difference-in-differences. install.packages("PanelMatch") EGAP author: Imai
scpi
R
2026-06-10 Synthetic control estimation with prediction intervals. install.packages("scpi") EGAP author: Titiunik
Synth
R
2026-04-29 Synthetic control method for comparative case studies. install.packages("Synth") EGAP author: Hainmueller
synthdid
R
Synthetic difference-in-differences estimates of effects in panel data. remotes::install_github("synth-inference/synthdid")
tidysynth
R
2025-03-24 Synthetic control with tools to inspect and visualize the fit install.packages("tidysynth")
bacondecomp
Stata
2022-09-21 Decomposes two-way fixed effects difference-in-differences into its component comparisons. ssc install bacondecomp
csdid
Stata
2025-10-05 Callaway-Sant’Anna difference-in-differences with multiple periods and staggered adoption. ssc install csdid
did_imputation
Stata
2023-11-22 Imputation estimator and pre-trend tests for staggered event studies. ssc install did_imputation
did_multiplegt
Stata
2024-07-19 Heterogeneity-robust difference-in-differences with multiple groups and periods. ssc install did_multiplegt
honestdid
Stata
2024-03-22 Sensitivity analysis for violations of parallel trends. ssc install honestdid
sdid
Stata
2026-06-17 Synthetic difference-in-differences estimation, inference, and plots. ssc install sdid
synth
Stata
2026-04-30 Standard synthetic control method for comparative case studies. ssc install synth EGAP author: Hainmueller
twowayfeweights
Stata
2024-06-13 Diagnoses negative weights in two-way fixed effects difference-in-differences. ssc install twowayfeweights
xtevent
Stata
2024-07-12 Estimates and plots panel event-study models. ssc install xtevent
scpi_pkg
Python
2026-06-02 Synthetic control estimates with prediction intervals for uncertainty. pip install scpi_pkg EGAP author: Titiunik

Instrumental variables

Package Latest release What it does Install Notes
ivDiag
R
2023-09-17 IV diagnostics: effective F, Anderson-Rubin test, bootstrapped intervals. install.packages("ivDiag")
ivmodel
R
2023-04-09 IV estimation with weak-instrument tests, sensitivity analysis, and power. install.packages("ivmodel")
ivreg2
Stata
2024-08-14 Standard IV and 2SLS estimation with weak-instrument diagnostics and robust errors. ssc install ivreg2
weakiv
Stata
2016-10-18 Weak-instrument-robust tests and confidence intervals for IV models. ssc install weakiv

Regression discontinuity

Package Latest release What it does Install Notes
rdrobust
R
2026-10-07 Standard estimation and robust inference for regression discontinuity designs. install.packages("rdrobust") EGAP author: Titiunik
rdlocrand
Stata
Local randomization inference for regression discontinuity designs. net install rdlocrand, from("https://raw.githubusercontent.com/rdpackages/rdlocrand/master/stata") EGAP author: Titiunik
rdrobust
Stata
2026-08-02 Standard local polynomial estimation and inference for regression discontinuity. ssc install rdrobust EGAP author: Titiunik
rdrobust
Python
2026-10-07 Standard local polynomial estimation and inference for regression discontinuity designs. pip install rdrobust EGAP author: Titiunik

Sensitivity to unmeasured confounding

Package Latest release What it does Install Notes
causalsens
R
2024-03-18 Sensitivity analysis of estimates to unmeasured confounding. install.packages("causalsens")
EValue
R
2025-08-28 E-values: how strong unmeasured confounding must be to explain an estimate. install.packages("EValue")
rbounds
R
2022-04-29 Rosenbaum bounds sensitivity analysis for unmeasured confounding. install.packages("rbounds")
sensemakr
R
2024-07-22 Sensitivity of regression estimates to omitted confounders. install.packages("sensemakr") EGAP author: Hazlett
konfound
Stata
2025-11-19 Quantifies how much unmeasured confounding would overturn an inference. ssc install konfound
rbounds
Stata
2004-03-25 Rosenbaum sensitivity analysis for hidden bias after matching. ssc install rbounds
sensemakr
Stata
2020-04-28 Sensitivity of regression estimates to unmeasured confounding. ssc install sensemakr EGAP author: Hazlett
Back to top