Implements the noniterative conditional expectation (NICE) algorithm of the gformula algorithm (Robins (1986) <doi:10.1016/02700255(86)900886>, Hernán and Robins (2024, ISBN:9781420076165)). The gformula can estimate an outcome's counterfactual mean or risk under hypothetical treatment strategies (interventions) when there is sufficient information on timevarying treatments and confounders. This package can be used for discrete or continuous timevarying treatments and for failure time outcomes or continuous/binary end of followup 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 followup) 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 


Maintainer  
License  GPL3 
Version  1.1.0 
URL  https://github.com/CausalInference/gfoRmula https://doi.org/10.1016/j.patter.2020.100008 
Package repository  View on GitHub 
Installation 
Install the latest version of this package by entering the following in R:

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.