Package: causalweight 1.1.1

Hugo Bodory

causalweight: Estimation Methods for Causal Inference Based on Inverse Probability Weighting

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. The models refer to studies of Froelich (2007) <doi:10.1016/j.jeconom.2006.06.004>, Huber (2012) <doi:10.3102/1076998611411917>, Huber (2014) <doi:10.1080/07474938.2013.806197>, Huber (2014) <doi:10.1002/jae.2341>, Froelich and Huber (2017) <doi:10.1111/rssb.12232>, Hsu, Huber, Lee, and Lettry (2020) <doi:10.1002/jae.2765>, and others.

Authors:Hugo Bodory [aut, cre], Martin Huber [aut], Jannis Kueck [aut]

causalweight_1.1.1.tar.gz
causalweight_1.1.1.tar.gz(r-4.5-noble)causalweight_1.1.1.tar.gz(r-4.4-noble)
causalweight_1.1.1.tgz(r-4.4-emscripten)causalweight_1.1.1.tgz(r-4.3-emscripten)
causalweight.pdf |causalweight.html
causalweight/json (API)

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

Peer review:

Datasets:
  • JC - Job Corps data
  • coffeeleaflet - Information leaflet on coffee production and environmental awareness of high school / university students in Bulgaria
  • 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.
  • 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.
  • games - Sales of video games
  • india - India's National Health Insurance Program
  • rkd - Swedish municipalities
  • swissexper - Correspondence test in Swiss apprenticeship market
  • ubduration - Austrian unemployment duration data
  • wexpect - Wage expectations of students in Switzerland

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

19 exports 2 stars 0.49 score 74 dependencies 18 scripts 807 downloads

Last updated 2 months agofrom:ff0abf5b97. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-linuxNOTEAug 23 2024

Exports:attrlateweightdidcontDMLdidcontDMLpaneldidDMLdidweightdyntreatDMLidentificationDMLivnrlateweightmedDMLmedlateweightmedweightmedweightcontpaneltestDMLRDDcovartestmedidenttreatDMLtreatselDMLtreatweight

Dependencies:backportsbitopsbootcaToolscheckmateclassclicodetoolscolorspacecubaturecvAUCdata.tableDiceKriginge1071fansifarverfastDummiesforeachFormulagamggplot2glmnetgluegplotsgrfgtablegtoolshdmisobanditeratorsjsonliteKernSmoothlabelingLARFlatticelifecyclelmtestmagrittrMASSMatrixMatrixModelsmgcvmunsellmvtnormnlmennlsnppillarpkgconfigproxyquadprogquantregR6rangerRColorBrewerRcppRcppEigenrlangROCRsandwichscalesshapeSparseMstringistringrSuperLearnersurvivaltibbleutf8vctrsviridisLitewithrxgboostzoo

Readme and manuals

Help Manual

Help pageTopics
Local average treatment effect estimation in multiple follow-up periods with outcome attrition based on inverse probability weightingattrlateweight
Information leaflet on coffee production and environmental awareness of high school / university students in Bulgariacoffeeleaflet
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.coupon
Data on daily spending and coupon receipt A dataset containing information on the purchasing behavior of 1582 retail store customers across 32 coupon campaigns.couponsretailer
Continuous Difference-in-Differences using Double Machine Learning for Repeated Cross-SectionsdidcontDML
Continuous Difference-in-Differences using Double Machine Learning for Panel DatadidcontDMLpanel
Difference-in-Differences in Repeated Cross-Sections for Binary Treatments using Double Machine LearningdidDML
Difference-in-differences based on inverse probability weightingdidweight
Dynamic treatment effect evaluation with double machine learningdyntreatDML
Sales of video gamesgames
Testing identification with double machine learningidentificationDML
India's National Health Insurance Program (RSBY)india
Instrument-based treatment evaluation under endogeneity and non-response biasivnr
Job Corps dataJC
Local average treatment effect estimation based on inverse probability weightinglateweight
Causal mediation analysis with double machine learningmedDML
Causal mediation analysis with instruments for treatment and mediator based on weightingmedlateweight
Causal mediation analysis based on inverse probability weighting with optional sample selection correction.medweight
Causal mediation analysis with a continuous treatment based on weighting by the inverse of generalized propensity scoresmedweightcont
paneltestDML: Overidentification test for ATET estimation in panel datapaneltestDML
Sharp regression discontinuity design conditional on covariatesRDDcovar
Swedish municipalitiesrkd
Correspondence test in Swiss apprenticeship marketswissexper
Test for identification in causal mediation and dynamic treatment modelstestmedident
Binary or multiple discrete treatment effect evaluation with double machine learningtreatDML
Binary or multiple treatment effect evaluation with double machine learning under sample selection/outcome attritiontreatselDML
Treatment evaluation based on inverse probability weighting with optional sample selection correction.treatweight
Austrian unemployment duration dataubduration
Wage expectations of students in Switzerlandwexpect