gFormulaMI: 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) <doi:10.1177/09622802251316971>. 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.

Package details

AuthorJonathan Bartlett [aut, cre] (ORCID: <https://orcid.org/0000-0001-7117-0195>), Camila Olarte Parra [ctb] (ORCID: <https://orcid.org/0000-0003-0263-4392>), Erik van Zwet [ctb]
MaintainerJonathan Bartlett <jonathan.bartlett1@lshtm.ac.uk>
LicenseGPL (>= 3)
Version1.0.2
URL https://jwb133.github.io/gFormulaMI/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("gFormulaMI")

Try the gFormulaMI package in your browser

Any scripts or data that you put into this service are public.

gFormulaMI documentation built on July 3, 2025, 5:08 p.m.