gfoRmula: Parametric G-Formula

Implements the non-iterative conditional expectation (NICE) algorithm of the g-formula algorithm (Robins (1986) <doi:10.1016/0270-0255(86)90088-6>, Hernán and Robins (2024, ISBN:9781420076165)). The g-formula can estimate an outcome's counterfactual mean or risk under hypothetical treatment strategies (interventions) when there is sufficient information on time-varying treatments and confounders. This package can be used for discrete or continuous time-varying treatments and for failure time outcomes or continuous/binary end of follow-up outcomes. The package can handle a random measurement/visit process and a priori knowledge of the data structure, as well as censoring (e.g., by loss to follow-up) and two options for handling competing events for failure time outcomes. Interventions can be flexibly specified, both as interventions on a single treatment or as joint interventions on multiple treatments. See McGrath et al. (2020) <doi:10.1016/j.patter.2020.100008> for a guide on how to use the package.

Package details

AuthorVictoria Lin [aut] (V. Lin and S. McGrath made equal contributions), Sean McGrath [aut, cre] (<https://orcid.org/0000-0002-7281-3516>, V. Lin and S. McGrath made equal contributions), Zilu Zhang [aut], Roger W. Logan [aut], Lucia C. Petito [aut], Jing Li [aut], McGee Emma [aut] (<https://orcid.org/0000-0002-7456-6408>), Cheng Carrie [aut], Jessica G. Young [aut] (<https://orcid.org/0000-0002-2758-6932>, M.A. Hernán and J.G. Young made equal contributions), Miguel A. Hernán [aut] (M.A. Hernán and J.G. Young made equal contributions), 2019 The President and Fellows of Harvard College [cph]
MaintainerSean McGrath <sean_mcgrath@g.harvard.edu>
LicenseGPL-3
Version1.1.0
URL https://github.com/CausalInference/gfoRmula https://doi.org/10.1016/j.patter.2020.100008
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("gfoRmula")

Try the gfoRmula package in your browser

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

gfoRmula documentation built on Oct. 1, 2024, 9:06 a.m.