G-Formula for Causal Inference via Multiple Imputation

Implements the G-Formula method for causal inference with time-varying treatments and confounders using Bayesian multiple imputation methods, as described by Bartlett et al (2025) . It creates multiple synthetic imputed datasets under treatment regimes of interest using the 'mice' package. These can then be analysed using rules developed for analysing multiple synthetic datasets.


gFormulaMI

gFormulaMI is an R package that implements the G-formula method for causal inference with time-varying treatments and confounders using multiple imputation methods. For more information, including examples, see the 'Get Started' page.

Installation

You can install the development version of gFormulaMI from GitHub with:

# install.packages("devtools")
devtools::install_github("jwb133/gFormulaMI")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gFormulaMI")

1.0.3 by Jonathan Bartlett, a year ago


https://jwb133.github.io/gFormulaMI/


Browse source code at https://github.com/cran/gFormulaMI


Authors: Jonathan Bartlett [aut, cre] (ORCID: , Camila Olarte Parra [ctb] (ORCID: , Erik van Zwet [ctb]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports mice

Suggests knitr, rmarkdown, testthat


See at CRAN