| Literature DB >> 32656541 |
Sean McGrath1,2,3, Victoria Lin4,2, Zilu Zhang5,6, Lucia C Petito7, Roger W Logan8, Miguel A Hernán1,8,9, Jessica G Young5.
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.Entities:
Year: 2020 PMID: 32656541 PMCID: PMC7351102 DOI: 10.1016/j.patter.2020.100008
Source DB: PubMed Journal: Patterns (N Y) ISSN: 2666-3899
Figure 1Comparison of the Nonparametric and Parametric g-formula Estimates of the Event Risk by Each Follow-Up Time, and Covariate Means, under the Natural Course
| id | t0 | L1 | L2 | L3 | A | Y | |
|---|---|---|---|---|---|---|---|
| 1: | 1 | 0 | 0 | 1.1470920 | 5 | 1 | 0 |
| 2: | 1 | 1 | 0 | −0.9254032 | 5 | 1 | 0 |
| 3: | 1 | 2 | 0 | −0.9899824 | 5 | 0 | 0 |
| 4: | 1 | 3 | 1 | 1.0057421 | 5 | 1 | 0 |
| 5: | 1 | 4 | 1 | −1.1956468 | 5 | 1 | 0 |
| 6: | 1 | 5 | 0 | −0.9697723 | 5 | 1 | 0 |
| 7: | 1 | 6 | 1 | −1.0887002 | 5 | 1 | 0 |