gfoRmula

Parametric G-Formula

CRAN Package

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.

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

Documentation


Team


Insights

Last 30 days

This package has been downloaded 491 times in the last 30 days. Now we're getting somewhere! Enough downloads to populate a lively group chat. The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 13 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
11 downloadsFeb 16, 2025
22 downloadsFeb 17, 2025
12 downloadsFeb 18, 2025
23 downloadsFeb 19, 2025
43 downloadsFeb 20, 2025
22 downloadsFeb 21, 2025
8 downloadsFeb 22, 2025
14 downloadsFeb 23, 2025
11 downloadsFeb 24, 2025
7 downloadsFeb 25, 2025
20 downloadsFeb 26, 2025
31 downloadsFeb 27, 2025
8 downloadsFeb 28, 2025
10 downloadsMar 1, 2025
14 downloadsMar 2, 2025
16 downloadsMar 3, 2025
30 downloadsMar 4, 2025
38 downloadsMar 5, 2025
11 downloadsMar 6, 2025
13 downloadsMar 7, 2025
7 downloadsMar 8, 2025
8 downloadsMar 9, 2025
18 downloadsMar 10, 2025
10 downloadsMar 11, 2025
8 downloadsMar 12, 2025
23 downloadsMar 13, 2025
9 downloadsMar 14, 2025
28 downloadsMar 15, 2025
3 downloadsMar 16, 2025
13 downloadsMar 17, 2025
0 downloadsMar 18, 2025
0 downloadsMar 19, 2025
0 downloadsMar 20, 2025
0 downloadsMar 21, 2025
0 downloadsMar 22, 2025
3
43

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

Last 365 days

This package has been downloaded 6,717 times in the last 365 days. A solid achievement! Enough downloads to get noticed at department meetings. The day with the most downloads was Oct 02, 2024 with 90 downloads.

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

  • Imports9 packages
  • Suggests5 packages