Package: cfdecomp 0.4.0

Maarten Jacob Bijlsma

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.

Authors:Maarten Jacob Bijlsma [aut, cre], Nikkil Sudharsanan [aut], Peng Li [ctb]

cfdecomp_0.4.0.tar.gz
cfdecomp_0.4.0.zip(r-4.7-any)cfdecomp_0.4.0.zip(r-4.6-any)cfdecomp_0.4.0.zip(r-4.5-any)
cfdecomp_0.4.0.tgz(r-4.6-any)cfdecomp_0.4.0.tgz(r-4.5-any)
cfdecomp_0.4.0.tar.gz(r-4.7-any)cfdecomp_0.4.0.tar.gz(r-4.6-any)
cfdecomp_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
cfdecomp/json (API)

# Install 'cfdecomp' in R:
install.packages('cfdecomp', repos = c('https://maartenbijlsma.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/maartenbijlsma/cfdecomp/issues

Datasets:

On CRAN:

Conda:

3.36 score 2 stars 23 scripts 335 downloads 7 exports 0 dependencies

Last updated from:b8aa06a823. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK165
source / vignettesOK204
linux-releaseOK110
macos-releaseOK147
macos-oldrelOK169
windows-develOK67
windows-releaseOK59
windows-oldrelOK66
wasm-releaseOK84

Exports:cfd.FUNcfd.meancfd.quantilecfd.semipar.meancfd.semipar.quantilecluster.resampleconv.mean

Dependencies: