Skip to content

gFormulaMI

G-Formula for Causal Inference via Multiple Imputation

v1.0.3 · Nov 7, 2025 · GPL (>= 3)

Description

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.

Downloads

286

Last 30 days

14493rd

681

Last 90 days

3K

Last year

Trend: +45.9% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies mice gFormulaMI

Version History

new 1.0.3 Mar 10, 2026
updated 1.0.3 ← 1.0.2 diff Nov 6, 2025
updated 1.0.2 ← 1.0.1 diff Jul 2, 2025
updated 1.0.1 ← 1.0.0 diff May 12, 2025
new 1.0.0 May 24, 2023