Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > stat > arXiv:1908.07072

Help | Advanced Search

arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Statistics > Computation

arXiv:1908.07072 (stat)
[Submitted on 19 Aug 2019 (v1), last revised 29 Oct 2019 (this version, v2)]

Title:gfoRmula: An R package for estimating effects of general time-varying treatment interventions via the parametric g-formula

Authors:Victoria Lin, Sean McGrath, Zilu Zhang, Lucia C. Petito, Roger W. Logan, Miguel A. Hernán, Jessica G. Young
View a PDF of the paper titled gfoRmula: An R package for estimating effects of general time-varying treatment interventions via the parametric g-formula, by Victoria Lin and 6 other authors
View PDF
Abstract:Researchers are often interested in using longitudinal data to estimate the causal effects of hypothetical time-varying treatment interventions on the mean or risk of a future outcome. Standard regression/conditioning methods for confounding control generally fail to recover causal effects when time-varying confounders are themselves affected by past treatment. In such settings, estimators derived from Robins's g-formula may recover time-varying treatment effects provided sufficient covariates are measured to control confounding by unmeasured risk factors. The package gfoRmula implements in R one such estimator: the parametric g-formula. This estimator easily adapts to binary or continuous time-varying treatments as well as contrasts defined by static or dynamic, deterministic or random treatment interventions, as well as interventions that depend on the natural value of treatment. The package accommodates survival outcomes as well as binary or continuous end of follow-up outcomes. For survival outcomes, the package has different options for handling competing events. This paper describes the gfoRmula package, along with motivating background, features, and examples.
Comments: V. Lin and S. McGrath made equal contributions. M.A. Hernan and J.G. Young made equal contributions
Subjects: Computation (stat.CO)
Cite as: arXiv:1908.07072 [stat.CO]
  (or arXiv:1908.07072v2 [stat.CO] for this version)
  https://doi.org/10.48550/arXiv.1908.07072
arXiv-issued DOI via DataCite
Journal reference: Patterns 1 (2020) 100008
Related DOI: https://doi.org/10.1016/j.patter.2020.100008
DOI(s) linking to related resources

Submission history

From: Sean McGrath [view email]
[v1] Mon, 19 Aug 2019 21:09:38 UTC (936 KB)
[v2] Tue, 29 Oct 2019 21:23:25 UTC (142 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled gfoRmula: An R package for estimating effects of general time-varying treatment interventions via the parametric g-formula, by Victoria Lin and 6 other authors
  • View PDF
  • TeX Source
  • Other Formats
view license
Current browse context:
stat.CO
< prev   |   next >
new | recent | 2019-08
Change to browse by:
stat

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
a export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • contact arXivClick here to contact arXiv Contact
  • subscribe to arXiv mailingsClick here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack