gfoRmula

Parametric G-Formula

CRAN Package

Implements the non-iterative conditional expectation (NICE) algorithm of the g-formula algorithm (Robins (1986) , 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) for a guide on how to use the package.

  • Version1.1.0
  • R version≥ 3.5.0
  • LicenseGPL-3
  • Needs compilation?No
  • Last release10/01/2024

Documentation


Team


Insights

Last 30 days

Last 365 days

The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.

Data provided by CRAN


Binaries


Dependencies

  • Depends1 package
  • Imports13 packages
  • Suggests5 packages