Related Experiment Video
Updated: Dec 15, 2025

Development of an Individual-Tree Basal Area Increment Model using a Linear Mixed-Effects Approach
Published on: July 3, 2020
gfoRmula: An R Package for Estimating the Effects of Sustained Treatment Strategies via the Parametric g-formula
Sean McGrath1,2,3, Victoria Lin4,2, Zilu Zhang5,6
1Department of Biostatistics, Harvard T.H. Chan School of Public Health, Boston, MA 02115, USA.
Abstract:
Researchers are often interested in estimating the causal effects of sustained treatment strategies, i.e., of (hypothetical) interventions involving time-varying treatments. When using observational data, estimating those effects requires adjustment for confounding. However, conventional regression methods cannot appropriately adjust for confounding in the presence of treatment-confounder feedback. In contrast, estimators derived from Robins's g-formula may correctly adjust for confounding even if treatment-confounder feedback exists. The package gfoRmula implements in R one such estimator: the parametric g-formula. This estimator can be used to estimate the effects of binary or continuous time-varying treatments as well as contrasts defined by static or dynamic, deterministic, or random interventions, as well as interventions that depend on the natural value of treatment. The package accommodates survival outcomes as well as binary or continuous outcomes measured at the end of follow-up. This paper describes the gfoRmula package, along with motivating background, features, and examples.
Related Concept Videos
Parametric Survival Analysis: Weibull and Exponential Methods
Weibull Distribution
The Weibull distribution is a flexible model used in parametric survival analysis. It can handle both increasing and decreasing hazard rates, depending on its shape parameter...
Dosage Regimen Designs: Nomograms and Tabulations
Comparing the Survival Analysis of Two or More Groups
Assumptions of Survival Analysis
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time...
One-Compartment Open Model: Wagner-Nelson and Loo Riegelman Method for ka Estimation
On...

