
MatchIt - Nonparametric Preprocessing for Parametric Causal Inference
Selects matched samples of the original treated and control groups with similar covariate distributions -- can be used to match exactly on covariates, to match on propensity scores, or perform a variety of other matching procedures. The package also implements a series of recommendations offered in Ho, Imai, King, and Stuart (2007) <DOI:10.1093/pan/mpl013>. (The 'gurobi' package, which is not on CRAN, is optional and comes with an installation of the Gurobi Optimizer, available at <https://www.gurobi.com>.)
Last updated
cppopenmp
14.66 score 236 stars 23 dependents 3.5k scripts 23k downloads
cobalt - Covariate Balance Tables and Plots
Generate balance tables and plots for covariates of groups preprocessed through matching, weighting or subclassification, for example, using propensity scores. Includes integration with 'MatchIt', 'WeightIt', 'MatchThem', 'twang', 'Matching', 'optmatch', 'CBPS', 'ebal', 'cem', 'sbw', and 'designmatch' for assessing balance on the output of their preprocessing functions. Users can also specify data for balance assessment not generated through the above packages. Also included are methods for assessing balance in clustered or multiply imputed data sets or data sets with multi-category, continuous, or longitudinal treatments.
Last updated
causal-inferencepropensity-scores
13.87 score 85 stars 11 dependents 1.7k scripts 20k downloads
WeightIt - Weighting for Covariate Balance in Observational Studies
Generates balancing weights for causal effect estimation in observational studies with binary, multi-category, or continuous point or longitudinal treatments by easing and extending the functionality of several R packages and providing in-house estimation methods. Available methods include those that rely on parametric modeling, optimization, and machine learning. Also allows for assessment of weights and checking of covariate balance by interfacing directly with the 'cobalt' package. Methods for estimating weighted regression models that take into account uncertainty in the estimation of the weights via M-estimation or bootstrapping are available. See the vignette "Installing Supporting Packages" for instructions on how to install any optional package 'WeightIt' uses, including those that may not be on CRAN.
Last updated
causal-inferenceinverse-probability-weightsobservational-studypropensity-scores
12.07 score 131 stars 4 dependents 834 scripts 10.0k downloadsarg - Clean and Simple Argument Checking
Checks function arguments, ideally for use in R packages. Uses a simple interface and produces clean, informative error messages using 'cli'.
Last updated
8.43 score 3 stars 10 dependents 568 scripts 13k downloadsfwb - Fractional Weighted Bootstrap
An implementation of the fractional weighted bootstrap to be used as a drop-in for functions in the 'boot' package. The fractional weighted bootstrap (also known as the Bayesian bootstrap) involves drawing weights randomly that are applied to the data rather than resampling units from the data. See Xu et al. (2020) <doi:10.1080/00031305.2020.1731599> for details.
Last updated
6.93 score 8 stars 1 dependents 10 scripts 6.4k downloads
optweight - Optimization-Based Stable Balancing Weights
Use optimization to estimate weights that balance covariates for binary, multi-category, continuous, and multivariate treatments in the spirit of Zubizarreta (2015) <doi:10.1080/01621459.2015.1023805>. The degree of balance can be specified for each covariate. In addition, sampling weights can be estimated that allow a sample to generalize to a population specified with given target moments of covariates, as in matching-adjusted indirect comparison (MAIC).
Last updated
causal-inferenceinverse-probability-weightsobservational-studyoptimizationpropensity-scores
5.77 score 9 stars 28 scripts 5.2k downloadsadrftools - Estimating, Visualizing, and Testing Average Dose-Response Functions
Facilitates estimating, visualizing, and testing average dose-response functions (ADRFs) for characterizing the causal effect of a continuous (i.e., non-discrete) treatment or exposure. Includes support for frequentist and Bayesian regression models, analytical and bootstrap inference, and characterization of subgroup effects.
Last updated
5.34 score 2 stars 4.3k downloads