cfdecomp: Counterfactual Decomposition: MC Integration of the G-Formula

Provides a set of functions for counterfactual decomposition (cfdecomp). The functions available in this package decompose differences in an outcome attributable to a mediating variable (or sets of mediating variables) between groups based on counterfactual (causal inference) theory. By using Monte Carlo (MC) integration (simulations based on empirical estimates from multivariable models) we provide added flexibility compared to existing (analytical) approaches, at the cost of computational power or time. The added flexibility means that we can decompose difference between groups in any outcome or and with any mediator (any variable type and distribution). See Sudharsanan & Bijlsma (2019) <doi:10.4054/MPIDR-WP-2019-004> for more information.

Getting started

Package details

AuthorMaarten Jacob Bijlsma [aut, cre], Nikkil Sudharsanan [aut], Peng Li [ctb]
MaintainerMaarten Jacob Bijlsma <maarten.bijlsma@gmail.com>
LicenseGPL-3
Version0.2.0
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("cfdecomp")

Try the cfdecomp package in your browser

Any scripts or data that you put into this service are public.

cfdecomp documentation built on May 2, 2020, 1:06 a.m.