Causal Tools Project

Twitter Facebook
September 2021

Causal Tools Project

September 2021 Newsletter

With fall upon us, it's a good time to check in with folks about our team’s latest efforts on the Causal Tools Project. As can be seen below, there are many online resources that could be useful to you, your team, or your students and postdocs. Please share this newsletter with anyone who you think might be interested.

Latest Research

Code Quality Assurance for Statistical Research

The paper “Best Practices in Statistical Computing” (Sanchez, Griffin, Pane, and McCaffrey, 2021) was recently published online as a featured article in Statistics in Medicine. In this paper, we describe the key steps for implementing a code quality assurance (QA) process that researchers can follow to improve their coding practices throughout a research project to assure the quality of the final data, code, analyses, and results. Following these steps can also make the code more accessible for sharing to support open science and replication.

The QA steps include: (i) adherence to principles for code writing and style that follow best practices; (ii) clear written documentation that describes code, workflow, and key analytic decisions; (iii) careful version control; (iv) good data management; and (v) regular testing and review. The steps are clearly demonstrated using a case study on treatment for substance use disorder taken from our team’s work. All the code and documentation used in the case study is available via Github.

Latest Tools

SHINY App for Time-Varying Treatments

This is a user-friendly, menu-driven Shiny application (app) that can be used to estimate inverse probability of treatment weights (IPTW) for time-varying treatments. It also can be used to estimate three different types of treatment effects using those weights. The app includes a tutorial, which demonstrates use of the TWANG Shiny app through an illustrative example and toy dataset. It provides a nice complement to our binary SHINY App for Two Treatments and our Shiny App for Three or More Treatments.

Covariate Web App (CoBApp)

This user-friendly, menu-driven app, created by Andreas Markoulidakis of Cardiff University in partnership with RAND, estimates balancing weights for nine different propensity score and entropy balancing methods, selects the optimal set of weights, performs treatment effect estimation, and helps users carefully assess the validity of both the overlap and unobserved confounding assumptions required for valid inference.

New Packages on CRAN

Our team has released several new R libraries on CRAN that can be used to aid causal inference.

  • Omitted variable sensitivity analysis tool (OVtool)
    Assesses the sensitivity of treatment effects and statistical significance to an unobserved confounder.
  • Entropy balancing for binary and continuous trts (entbal)
    Estimates causal treatment effects for binary and continuous treatments using entropy balancing (EB).
  • Continuous exposures/treatment tool (twangContinuous)
    Estimates generalized propensity score weights for continuous exposures/treatments using generalized boosted models (GBM).
  • Causal mediation tool (wgtmed)
    Conducts causal mediation to estimate natural direct and indirect effects for one or more mediators using a weighting approach with weight estimated by GBM or logistic regression.
  • Selection bias decomposition (SBdecomp)
    Quantifies the proportion of the estimated selection bias explained by each observed confounder when estimating causal effects using propensity score weights.
  • Twang 2.0
    Our updated TWANG package expands the original package to include xgboost for estimation of propensity score weights with the goal of improving the performance of the TWANG package for big data. The twang 2.0 R library on CRAN contains:
    • ps command: to estimate propensity score weights for two groups
    • mnps command: to estimate propensity score weights for more than two groups
    • iptw command: to estimate inverse probability of treatment weights for time-varying treatments.

Other Available Tools

All software tools are available to download here: https://www.rand.org/statistics/twang/downloads.html

Related tutorials are available to download here: https://www.rand.org/statistics/twang/tutorials.html

SAS Tools

  • TWANG Macro Package: This package contains commands for estimating propensity score weights for two groups (using the %ps command) and for more than two groups (using the %mnps command). It also contains a command (using the %dxwts command) for assessing the covariate balance achieved by any set of weights.

Stata Tools

  • Support Files for PS and MNPS: This set of files supports estimating propensity score weights for two groups (using the ps command) and more than two groups (using the ps and mnps command) and for checking the balance of groups after weighting.

Online Educational Videos

A list of instructional videos can be found here: https://www.rand.org/statistics/twang/tutorials.html#instructional-videos-

Causal Inference Short Course/Educational Videos

This series of eight training videos provides researchers and analysts with an overview of causal inference and the role of propensity scores in analysis. It introduces causal modeling using the potential outcomes framework and propensity score weights to estimate causal effects from observational data. Presenters demonstrate how propensity score weights can be utilized to estimate intervention effects, how to evaluate balance before and after propensity score weighting, and how to fit models with available software in Stata and R. Tools are also available in SAS and Shiny. Those who take the course learn how to implement propensity score weighting using state-of-the-art methods and gain insights into some of the practical issues around evaluating the quality of propensity score weights for two or more treatment groups and time-varying treatments.

Upcoming Workshops

A list of workshops can be found here: https://www.rand.org/statistics/twang/workshops.html

Members of the TWANG project team will again be conducting a series of workshops in 2021 to help those without any experience in propensity scores, as well as more advanced users, gain hands-on experience to estimate propensity score weights using boosted models in R, SAS, Stata, and Shiny. Please email us at twang-project@rand.org to learn more if you are interested in attending.

American Statistical Association (ASA) Traveling Short Course Series

Guidelines for Using State-of-the-Art Methods to Estimate Propensity Score and Inverse Probability of Treatment Weights When Drawing Causal Inferences

Presenters: Beth Ann Griffin, Daniel McCaffrey, Lane Burgette, Matt Cefalu, Donna Coffman

Locations: All virtual as part of the following ASA chapters: Connecticut, Philadelphia, Hawaii, Wisconsin, Houston, Oklahoma, North Indiana.

Dates: 2021

Addiction Health Services Conference Pre-Conference Workshop

Practical Considerations for Estimating the Moderated and Mediated Effects of Substance Use Treatments

Presenter: Beth Ann Griffin and Megan Schuler

Locations: Virtual

Date and Time: Oct 13, 2021 from 12:45 p.m. – 2:15 p.m.

Related Publications

A full list of related publications can be found here: https://www.rand.org/statistics/twang/publications.html

  • Griffin, B. A., Booth, M. S., Busse, M., Wild, E. J., Setodji, C., Warner, J. H., Sampaio, C., Mohan, A. (2021). Estimating the casual effects of modifiable, non-genetic factors on Huntington disease progression using propensity score weighting. Parkinsonism and Related Disorders. 83: 56-62. https://doi.org/10.1016/j.parkreldis.2021.01.010
  • Parast, L., Hunt, P., Griffin, B. A., Powell, D. (2020). When is a Match Sufficient? A Score-based Balance Metric for Synthetic Control Method Program. Journal of Causal Inference, 8(1), pp. 209-228. https://doi.org/10.1515/jci-2020-0013
  • Agniel, D., Almirall, D., R., Burkhart, Q., Grant, S., Hunter, S. B., Pedersen, E. R., Ramchand, R, Griffin, B. A. (2020). Identifying optimal sequences of individually-tailored, level-of-care placement decisions for adolescent substance use treatment: A novel method using observational data. Drug and Alcohol Dependence, 212: 107991. https://doi.org/10.1016/j.drugalcdep.2020.107991
  • Griffin BA, Ayer L, Pane J, et al. Expanding outcomes when considering the relative effectiveness of two evidence-based outpatient treatment programs for adolescents. J Subst Abuse Treat. 2020;118:108075.
  • Vegetabile BG, Griffin BA, Coffman DL, Godley M, McCaffrey DF. Nonparametric Estimation of Population Average Dose-Response Curves using Entropy Balancing Weights for Continuous Exposures. Health Services and Outcomes Research Methodology. In Press.
  • Parast L, Griffin BA. Quantifying the bias due to observed individual confounders in causal treatment effect estimates. Stat Med. 2020;39(18):2447-2476.
  • Vegetabile BG, Gillen DL, Stern HS. Optimally balanced Gaussian process propensity scores for estimating treatment effects. J Roy Stat Soc Ser A (Stat Soc). 2020;183(1):355-377.
  • Coffman DL, Zhou J, Cai X. Comparison of methods for handling covariate missingness in propensity score estimation with a binary exposure. BMC Med Res Methodol. 2020;20(1):168.
  • Robbins MW, Griffin BA, Shih RA, Slaughter ME. Robust estimation of the causal effect of time-varying neighborhood factors on health outcomes. Stat Med. 2020;39(5):544-561.
  • Ayer, Lynsay and Dana Schultz, eds., Mental Health Task-Shifting in Community-Based Organizations: Implementation, Impact, and Cost — Evaluation of the Connections to Care Program, Santa Monica, Calif.: RAND, RR-3083-MFANYC, 2020. As of January 12, 2021: https://www.rand.org/pubs/research_reports/RR3083.html
  • Antonelli, Joseph, and Matthew Cefalu. "Averaging causal estimators in high dimensions." Journal of Causal Inference 8.1 (2020): 92-107.
  • Agniel Denis, Han Bing, and Cefalu Matthew. "Synthetic estimation for the complier average causal effect." Canadian Journal of Statistics. In press.

Updates on State Policy Research Methods

The RAND-USC Schaeffer Opioid Policy Tools and Information Center (OPTIC) is playing a prominent role understanding best methods and approaches for tackling the opioid crisis in the United States. OPTIC’s mission is to be a national resource, fostering innovative research in opioid policy science, and developing and disseminating methods, tools, and information to the research community, policymakers, and other stakeholders. Our work focuses on policy effects at multiple levels, the health care consequences of opioid misuse, and treatment access and effectiveness. See the OPTIC website for more information and to sign up for quarterly newsletters.

Funding

Funding for these efforts have been supported by two grants from the National Institute of Drug Abuse (NIDA): R01DA034065 and R01DA045049 (PIs: Griffin & McCaffrey).

Feedback

Finally, if you have any feedback on our tools, tutorials, website or methods, please contact us at twang-project@rand.org.

If you are not yet subscribed to receive these updates from the Causal Tools Project, please email us, or sign up on our website.

RAND is a nonprofit institution that helps improve policy and decisionmaking through research and analysis.

Privacy statement

RAND Corporation

RAND. 1776 Main Street, Santa Monica, CA 90401-3208.
RAND® is a registered trademark.