Skip to content

cfdecomp

0.4.0

Counterfactual Decomposition: MC Integration of the G-Formula

0packages depend
2.8Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Maarten Jacob BijlsmaFirst published 2020-03-184 releasesCRAN page ↗

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

CRAN checks
13OK
Slowest check: 1.2 min · r-devel-linux-x86_64-fedora-clang
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
0
Dependencies · direct
Check history
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 134 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
0%

Downloads

2.8K
CRAN downloads in the past year
Rank #17,454 · ~8/day · ~234/mo
Daily download trend is not available in this view yet.
19430 days
64790 days
2.8K1 year
Compare downloads with other packages →
Also on150 r2u38 autocran43 c2d4u

Dependencies

Declared dependencies
0 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (3)
Maintainer (1)
Author, Maintainer · added in 0.2.0
Authors (2)
Author, Maintainer · added in 0.2.0
Contributors (1)
Contributor
Listed in earlier versions (1)
no longer listed · 0.1.0
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.4.0Latest
    2021-08-11 · current release · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.0
    2021-02-02 · diff ↗
  • 0.2.0
    2020-05-02 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.1.0
    2020-03-18
  • R
    R 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
Appears in task views
Report a problem with this page →