Deconfounder is an R package for building and validating the medical deconfounder using data in the OHDSI OMOP Common Data Model format.
Deconfounder is a causal inference model for estimating the treatment effects of medications with eletronic health records. We aim to assess the treatment effects of multiple medications on measurements using the Deconfounder. Deconfounder identifies the causal medications that have either direct effect or adverse effect on each clinical measurement. The inputs to Deconfounder are medication records and pre-treatment and post-treatment measurement values. The Deconfounder fits a probabilistic factor model (e.g., poisson factoriztion or deep exponential family) to the medication records to construct substitute confounders and adjusts for substitute confounders in the outcome model for assessing the causal effects of medications.
Deconfounder is an R package, with some functions implemented in python.
Requires R (version 3.4.0 or higher), Python (version 3.7 or higher) and Java.
OHDSI R packages:
Python packages:
torch==1.6.0
numpy
pandas
scipy
sklearn
Install from github using devtools package.
install.packages("devtools")
devtools::install_github("zhangly811/Deconfounder")
Vignette: Deconfounder on single outcome
Manual: Deconfounder
Deconfounder is licensed under Apache License 2.0
Deconfounder is being developed in R Studio.
Zhang L, Wang Y, Ostropolets A, Mulgrave JJ, Blei DM, Hripcsak G. The Medical Deconfounder: Assessing Treatment Effects with Electronic Health Records. Accepted at Machine Learning for Health Care (MLHC) Conference 2019.
Y. Wang and D. Blei. The blessings of multiple causes. Journal of the American Statistical Association, 114:528, 1574-1596, 2019.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.