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.
You can install the development version of gFormulaMI from GitHub with:
# install.packages("devtools")
# devtools::install_github("jwb133/gFormulaMI")
install.packages("gFormulaMI", repos = c('https://jwb133.r-universe.dev', 'https://cloud.r-project.org'))