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 635 times in the last 30 days. More downloads than an obscure whitepaper, but not enough to bring down any servers. A solid effort! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 15 times.

Sun
Mon
Tue
Wed
Thu
Fri
Sat
0 downloadsMar 2, 2025
0 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
16 downloadsMar 18, 2025
15 downloadsMar 19, 2025
23 downloadsMar 20, 2025
20 downloadsMar 21, 2025
23 downloadsMar 22, 2025
11 downloadsMar 23, 2025
37 downloadsMar 24, 2025
44 downloadsMar 25, 2025
29 downloadsMar 26, 2025
21 downloadsMar 27, 2025
86 downloadsMar 28, 2025
18 downloadsMar 29, 2025
10 downloadsMar 30, 2025
8 downloadsMar 31, 2025
40 downloadsApr 1, 2025
15 downloadsApr 2, 2025
0 downloadsApr 3, 2025
0 downloadsApr 4, 2025
0 downloadsApr 5, 2025
3
86

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,837 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