Skip to content

gFormulaMI

1.0.3

G-Formula for Causal Inference via Multiple Imputation

0packages depend
2.8Kdownloads / year
96.4%test coverage
13/13checks pass

Overview

About
Maintained by Jonathan BartlettFirst published 2023-05-254 releasesCRAN page ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 2.7 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.62
96.4%
Coverage · measured lines
100%
Documentation · exports
1
Dependencies · direct
Check history
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-25
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 55 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 67% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
67%

Downloads

2.8K
CRAN downloads in the past year
Rank #20,266 · ~8/day · ~233/mo
Daily download trend is not available in this view yet.
17230 days
59690 days
2.8K1 year
Compare downloads with other packages →
Also on114 r2u28 autocran

Repository

Repository
9Stars
1Forks
2Open issues
0Open PRs
0Releases
46Commits
2Contributors
License GPL-3.0 · 46 commits · Last activity 2025-11-07 · 0% stars, 30d

Stars over time

2025-06-24 · 92026-07-07 · 9

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/jwb133/gformulami on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Depends (1)
R >= 2.10
Imports (1)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (2)
Contributor
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.0.3Latest
    2025-11-07 · current release · diff ↗
  • 1.0.2
    2025-07-03 · diff ↗
  • 1.0.1
    2025-05-13 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0.0
    2023-05-25
  • R
    R 4.3.0 released · 2023-04-21

Package metadata

First published
2023-05-25
Total releases
4 / 3 yrs
License
GPL (>= 3) OSI
Minimum R
≥ 2.10
Bundled data
155 KB / 1 file
Download size
352 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →