CausalInference / gfoRmula

The gfoRmula package implements the parametric g-formula in R. The parametric g-formula (Robins, 1986) uses longitudinal data with time-varying treatments and confounders to estimate the risk or mean of an outcome under hypothetical treatment strategies specified by the user.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gfoRmula: Parametric G-Formula

CRAN_Status_Badge

Installation

You can install the released version of gfoRmula from CRAN with:

install.packages("gfoRmula")

After installing the devtools package (i.e., calling install.packages(devtools)), the development version of gfoRmula can be installed from GitHub with:

devtools::install_github("CausalInference/gfoRmula")

Usage

Please refer to McGrath et al. (2020) for a detailed guide to the gfoRmula package.

About

The gfoRmula package implements the parametric g-formula in R. The parametric g-formula (Robins, 1986) uses longitudinal data with time-varying treatments and confounders to estimate the risk or mean of an outcome under hypothetical treatment strategies specified by the user.


Languages

Language:R 100.0%