Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.14 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.14 KB

An implementation of g-methods

This package facilitates causal inference by implementing g-methods: g-formula, inverse probability weighting (IPW), and g-estimation. These methods are comprehensively described in Causal Inference: What If book by Hernán and Robins1 using 1 of 4 NHEFS datasets described in this book (https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/). This package only provide nhefs table, a cleaned version of NHEFS data, for example data. The remaining datasets from that book could be retrieved from cidata R package (https://github.com/malcolmbarrett/cidata) for more information.

Quick Start gmethods R

Read vignette for simple example in R

Download R script

Reference manual

References

[1] Hernán MA, Robins JM (2020). Causal Inference: What If. Boca Raton: Chapman & Hall/CRC.