Skip to content

herdiantrisufriyana/gmethods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.