gfoRmula: Parametric G-Formula

Installation

You can install the released version of gfoRmula from CRAN with:

install.packages("gfoRmula")

After installing the devtools package (i.e., calling install.packages(devtools)), the development version of gfoRmula can be installed from GitHub with:

# devtools::install_github("CausalInference/gfoRmula")
install.packages("gfoRmula", repos = c('https://causalinference.r-universe.dev', 'https://cloud.r-project.org'))

Usage

Please refer to McGrath et al. (2020) for a detailed guide to the gfoRmula package. Also, see the following vignettes regarding updates since McGrath et al. (2020):