Package: cfdecomp
Type: Package
Title: Counterfactual Decomposition: MC Integration of the G-Formula
Version: 0.4.0
Authors@R: c(
    person("Maarten Jacob", "Bijlsma", role=c("aut", "cre"), email=  "maarten.bijlsma@gmail.com"),
    person("Nikkil", "Sudharsanan", role=c("aut")),
    person("Peng", "Li", role=c("ctb"))
    )
Maintainer: Maarten Jacob Bijlsma <maarten.bijlsma@gmail.com>
Description: 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.
Depends: R (>= 3.5.0)
License: GPL-3
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.1
NeedsCompilation: no
Packaged: 2021-08-11 20:23:34 UTC; maartenuser
Author: Maarten Jacob Bijlsma [aut, cre],
  Nikkil Sudharsanan [aut],
  Peng Li [ctb]
Repository: CRAN
Date/Publication: 2021-08-11 20:40:02 UTC
Built: R 4.6.0; ; 2026-04-26 14:15:41 UTC; unix
