CRAN/E | gfoRmula

gfoRmula

Parametric G-Formula

Installation

About

Implements the parametric g-formula algorithm of Robins (1986) doi:10.1016/0270-0255(86)90088-6. The g-formula can be used to estimate the causal effects of hypothetical time-varying treatment interventions on the mean or risk of an outcome from longitudinal data with time-varying confounding. This package allows: 1) binary or continuous/multi-level time-varying treatments; 2) different types of outcomes (survival or continuous/binary end of follow-up); 3) data with competing events or truncation by death and loss to follow-up and other types of censoring events; 4) different options for handling competing events in the case of survival outcomes; 5) a random measurement/visit process; 6) joint interventions on multiple treatments; and 7) general incorporation of a priori knowledge of the data structure.

github.com/CausalInference/gfoRmula
doi.org/10.1016/j.patter.2020.100008
Bug report File report

Key Metrics

Version 1.0.4
R ≥ 3.5.0
Published 2024-01-30 59 days ago
Needs compilation? no
License GPL-3
CRAN checks gfoRmula results

Downloads

Yesterday 34 0%
Last 7 days 101 -6%
Last 30 days 458 -36%
Last 90 days 1.822 +32%
Last 365 days 6.300 +3%

Maintainer

Maintainer

Sean McGrath

sean_mcgrath@g.harvard.edu

Authors

Victoria Lin

aut

(V. Lin and S. McGrath made equal contributions)

Sean McGrath

aut / cre

(V. Lin and S. McGrath made equal contributions)

Zilu Zhang

aut

Roger W. Logan

aut

Lucia C. Petito

aut

Jing Li

aut

Jessica G. Young

aut

(M.A. Hernán and J.G. Young made equal contributions)

Miguel A. Hernán

aut

(M.A. Hernán and J.G. Young made equal contributions)

2019 The President
Fellows of Harvard College

cph

Material

README
NEWS
Reference manual
Package source

In Views

CausalInference

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

gfoRmula archive

Depends

R ≥ 3.5.0

Imports

data.table
ggplot2
ggpubr
grDevices
nnet
parallel
progress
stats
stringr
survival
truncnorm
truncreg
utils

Suggests

Hmisc