cfdecomp
0.4.0Counterfactual Decomposition: MC Integration of the G-Formula
Overview
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.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
4 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.4.0Latest
- RR 4.1.0 released · 2021-05-18
- 0.3.02021-02-02 · diff ↗
- 0.2.02020-05-02 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.1.02020-03-18
- RR 3.6.0 released · 2019-04-26
Package metadata
- First published
- 2020-03-18
- Total releases
- 4 / 6 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 97 KB / 1 file
- Download size
- 218 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet