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 Robins using 1 of 4 NHEFS datasets described in this book (https://www.hsph.harvard.edu/miguel-hernan/causal-inference-book/). This package only provides 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.
Package details |
|
---|---|
Maintainer | |
License | GPL-3 |
Version | 0.1.0 |
URL | https://github.com/herdiantrisufriyana/gmethods |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.