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.
☆183Nov 3, 2025Updated 3 months ago
Alternatives and similar repositories for gfoRmula
Users that are interested in gfoRmula are comparing it to the libraries listed below
Sorting:
- The GFORMULA macro implements the parametric g-formula in SAS. The parametric g-formula (Robins, 1986) uses longitudinal data with time-v…☆37Jan 22, 2026Updated last month
- Causal Inference: What If. R and Stata code for Exercises☆92Nov 6, 2025Updated 3 months ago
- ☆34Feb 19, 2026Updated last week
- ☆20Nov 5, 2018Updated 7 years ago
- Drawing graphical models for causal inference using LaTeX☆119May 5, 2023Updated 2 years ago
- Tutorial_Computational_Causal_Inference_Estimators☆38Oct 29, 2021Updated 4 years ago
- A Quarto-based collection of supplementary material from the clinical prediction models book.☆17Aug 13, 2025Updated 6 months ago
- Repository for Introduction to Bayesian Estimation of Causal Effects☆68Oct 24, 2020Updated 5 years ago
- Code for: Murray EJ, Robins JM, George R. Seage III, Freedberg KA, Hernan MA. A Comparison of Agent-Based Models and the Parametric G-For…☆10Nov 27, 2017Updated 8 years ago
- Diagnostics for confounding of time-varying and other joint exposures☆11Dec 12, 2022Updated 3 years ago
- pharmaR website☆10Jul 31, 2025Updated 7 months ago
- Nonparametric estimators of the average treatment effect with doubly-robust confidence intervals and hypothesis tests☆20Jan 4, 2023Updated 3 years ago
- Python code for part 2 of the book Causal Inference: What If, by Miguel Hernán and James Robins☆1,340Jan 8, 2022Updated 4 years ago
- A suite of functions for reproducible causal mediation analyses☆71Feb 17, 2025Updated last year
- Longitudinal Mediation with Modified Treatment Policies☆12Sep 26, 2025Updated 5 months ago
- A user-created catalog of great economics writing☆11Sep 1, 2022Updated 3 years ago
- R package for risk regression and prediction with censored data☆55Updated this week
- Propensity Score Analysis with R☆92Apr 4, 2025Updated 10 months ago
- Basic sensitivity analysis of epidemiological results in R: Moved to codeberg.org/dhaine/episensr☆13Apr 18, 2025Updated 10 months ago
- Chinese Restaurant Process Models for Regression and Clustering. Master branch contains latest stable build.☆12Jul 22, 2021Updated 4 years ago
- Tutorial for a target trial emulation with a time-varying exposure, time-dependent confounding, time-to-event outcome, and Sequentially D…☆67Jun 21, 2023Updated 2 years ago
- Non-parametric Causal Effects Based on Modified Treatment Policies☆81Jan 20, 2026Updated last month
- ☆44Oct 12, 2021Updated 4 years ago
- Examples of statistical simulations☆15Oct 31, 2020Updated 5 years ago
- R package to calculate the final size of an SIR epidemic in populations with heterogeneity in social contacts and disease susceptibility☆15Jan 1, 2026Updated 2 months ago
- ☆97Jan 4, 2024Updated 2 years ago
- R package for estimating and visualizing multilevel propensity score models.☆16Nov 17, 2025Updated 3 months ago
- sharing code for the GBD 2021 anemia paper which will be published in the Lancet Haematology INFR-15310☆12May 17, 2023Updated 2 years ago
- An R package for generalised survival models☆27Aug 27, 2025Updated 6 months ago
- ☆15Apr 24, 2021Updated 4 years ago
- 📊 🌐 🧑🏫 Website for graduate-level course on program evaluation and causal inference using R, built with Quarto☆65Nov 14, 2022Updated 3 years ago
- ☆31Dec 19, 2020Updated 5 years ago
- Causal Mediation analysis☆10Dec 26, 2025Updated 2 months ago
- Causal mediation analysis in R☆31Dec 12, 2020Updated 5 years ago
- Second year undergraduate statistics☆32Feb 12, 2026Updated 2 weeks ago
- Propensity score Matching and Subclassification with 3 or more Treatments☆21Dec 1, 2019Updated 6 years ago
- The "Hidden Curriculum" assignment from UT Austin's Masters Causal Inference course, Spring 2022.☆11May 14, 2022Updated 3 years ago
- Metalearners for Survival Data☆15Jul 31, 2023Updated 2 years ago
- Corresponding code guide to the tutorial paper "Introducing longitudinal modified treatment policies: a unified framework for studying c…☆27May 11, 2023Updated 2 years ago