Learn R Programming

causalweight (version 1.1.6)

Estimation Methods for Causal Inference Based on Inverse Probability Weighting and Doubly Robust Estimation

Description

Various estimators of causal effects based on inverse probability weighting, doubly robust estimation, and double machine learning. Specifically, the package includes methods for estimating average treatment effects, direct and indirect effects in causal mediation analysis, and dynamic treatment effects based on different identification strategies (unconfoundedness, instruments, difference-in-differences, regression discontinuity designs).

Copy Link

Version

Install

install.packages('causalweight')

Monthly Downloads

1,728

Version

1.1.6

License

MIT + file LICENSE

Maintainer

Hugo Bodory

Last Published

September 25th, 2026

Functions in causalweight (1.1.6)

medweight

Causal mediation analysis based on inverse probability weighting with optional sample selection correction.
medlateweight

Causal mediation analysis with instruments for treatment and mediator based on weighting
medweightcont

Causal mediation analysis with a continuous treatment based on weighting by the inverse of generalized propensity scores
ivnr

Instrument-based treatment evaluation under endogeneity and non-response bias
lateweight

Local average treatment effect estimation based on inverse probability weighting
medqteDML

Natural direct and indirect quantile treatment effects with double machine learning
medDML

Causal mediation analysis with double machine learning
paneltestDML

paneltestDML: Overidentification test for ATET estimation in panel data
testmedident

Test for identification in causal mediation and dynamic treatment models
treatDML

Binary or multiple discrete treatment effect evaluation with double machine learning
treatselDML

Binary or multiple treatment effect evaluation with double machine learning under sample selection/outcome attrition
treatweight

Treatment evaluation based on inverse probability weighting with optional sample selection correction.
treatcontDML

Continuous Treatment Effect Estimation under Selection on Observables using Double Machine Learning
wexpect

Wage expectations of students in Switzerland
rkd

Swedish municipalities
india

India's National Health Insurance Program (RSBY)
predict.cw_superlearner

Predictions from the internal nuisance learner
labormarket

Temporary Work Agency (TWA) Assignments and Permanent Employment in Sicily
swissexper

Correspondence test in Swiss apprenticeship market
ubduration

Austrian unemployment duration data
attrlateweight

Local average treatment effect estimation in multiple follow-up periods with outcome attrition based on inverse probability weighting
c401k

401(k) Pension Plan Participation and Net Financial Assets
catehetDML

Testing effect homogeneity across studies with double machine learning
ATETDML

ATET Estimation for Binary Treatments using Double Machine Learning
RDDcovar

Sharp regression discontinuity design conditional on covariates
coupon

Data on daily spending and coupon receipt (selective subsample) This data set is a selective subsample of the data set "couponsretailer" which was constructed for illustrative purposes.
JC

Job Corps data
couponsretailer

Data on daily spending and coupon receipt A dataset containing information on the purchasing behavior of 1582 retail store customers across 32 coupon campaigns.
creditcard

Expenditure and Default Data
coffeeleaflet

Information leaflet on coffee production and environmental awareness of high school / university students in Bulgaria
didweight

Difference-in-differences based on inverse probability weighting
identificationDML

Testing identification with double machine learning
games

Sales of video games
didmedDMLpanel

Difference-in-Differences for Mediation Analysis with Panel Data and Discrete Treatments Using Double Machine Learning
didDML

Difference-in-Differences in Repeated Cross-Sections for Binary Treatments using Double Machine Learning
didcontDML

Continuous Difference-in-Differences using Double Machine Learning for Repeated Cross-Sections
didcontDMLpanel

Continuous Difference-in-Differences using Double Machine Learning for Panel Data
dyntreatDML

Dynamic treatment effect evaluation with double machine learning
didmedDML

Difference-in-Differences for Mediation Analysis with Repeated Cross-Sections and Discrete Treatments Using Double Machine Learning
detectIV

Detection of instruments and control variables and validity testing with double machine learning