R Observatory
Search

Flexible and General Mediation Analysis Using Riesz Representers

install.packages("crumble")
CRAN checks, method
OKnotes on 13 of 13
CRAN 30-day downloads, method
250−28.8% down on the 30 days before, the worse direction
Test coverage, method
0.9%of lines run by tests

Implements a modern, unified estimation strategy for common mediation estimands (natural effects, organic effects, interventional effects, and recanting twins) in combination with modified treatment policies as described in Liu, Williams, Rudolph, and Díaz (2024) <doi:10.48550/arXiv.2408.14620>.

Full description

Implements a modern, unified estimation strategy for common mediation estimands (natural effects, organic effects, interventional effects, and recanting twins) in combination with modified treatment policies as described in Liu, Williams, Rudolph, and Díaz (2024) <doi:10.48550/arXiv.2408.14620>. Estimation makes use of recent advancements in Riesz-learning to estimate a set of required nuisance parameters with deep learning. The result is the capability to estimate mediation effects with binary, categorical, continuous, or multivariate exposures with high-dimensional mediators and mediator-outcome confounders using machine learning.

Maintainer
Nicholas Williams
Licence
GPL (>= 3)
Latest release
2 Dec 2024
First release
18 Sep 2024

Compare with another package

More details
Releases
3
Needs compilation
No
Needs R
>= 4.0.0
Config/testthat/edition
3
RoxygenNote
7.3.2
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("crumble")
APA
Williams, N., Díaz, I., & Liu, R. (2024). crumble: Flexible and General Mediation Analysis Using Riesz Representers (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.crumble
About

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for crumble version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-27. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-27, which the citation names so these numbers can be found later.

No warnings or errors. 13 of 13 check platforms have notes.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    Note

    Version checked
    0.1.2
    Time taken
    49 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    0.1.2
    Time taken
    36 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    Note

    Version checked
    0.1.2
    Time taken
    32 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    Note

    Version checked
    0.1.2
    Time taken
    30 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    73 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    Note

    Version checked
    0.1.2

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    46 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    76 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    44 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    43 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-release-macos-arm64

    The current release of R on macOS, arm64

    Note

    Version checked
    0.1.2
    Time taken
    16 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    50 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    Note

    Version checked
    0.1.2
    Time taken
    63 s

    DESCRIPTION meta-information: Note

    Missing dependency on R >= 4.2.0 because package code uses the pipe

    Full output

  • 13 Note
Check output (1)

DESCRIPTION meta-information, Note on 13 platforms

Missing dependency on R >= 4.2.0 because package code uses the pipe
  placeholder syntax added in R 4.2.0.
  File(s) using such syntax:
    ‘helpers.R’
Missing dependency on R >= 4.2.0 because package code uses the pipe
  placeholder syntax added in R 4.2.0.
  File(s) using such syntax:
    'helpers.R'

Check results on CRAN

Total downloads in the last 30 days
252−29.8% down on the 30 days before, the worse directionIt is the sum of 2 channels: CRAN and r2u.

CRAN rank

17,621 of 26,529

CRAN

250 downloads in the last 30 days

Rank
17,621 of 26,529
Change
−28.8% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

2 downloads in the last 30 days

Rank
14,902 of 30,526
Change
−75% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
15
Dependent packages
0
Suggested by
0
Needs (15)
Installing it adds
74 packages, 40.9 MB of source
Of those, need compilation
34
Optional extras (3)
Functions
50
Public exports
4
Lines of R code
1,180
Median complexity
1
Functions (50)
Size and composition

Lines by kind (1,481)

KindLinesShare
R code1,18080%
Tests524%
Documentation24917%

Lines by language

LanguageLinesShare
R1,23283%
Rd24917%

Languages are counted from file extensions.

Files
35
R functions
50
Object systems
S3: 2 methods, S7: 3 classes
Complexity
Median
1
Mean
1.78
Highest
7
Median lines per function
10.5
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
50
Calls
44
Unconnected
12
Groups
3
Growth (3 releases)
Total lines by release
1,669 on 18 Sep 20241,481 on 2 Dec 2024
Release changes

The tests ran and coverage was measured.

Lines run by tests
0.9%
Expressions run by tests
1.5%
Test cases
1
Exports named in tests
25%
Coverage by file (19)
Coverage run
Lines counted
705
Lines the tests ran
6
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
1
Lines of tests
52
Test lines per line of code
0.04
Exports documented
100%
Arguments documented
97.9%
Return value documented
75%
Help pages with examples
80%
Examples run in checks
50%
Other documentation
README
Yes, 414 words
Release notes file
Yes
Help pages
5
Lines of documentation
249

No repository on record

R releases
  • On CRAN
  • Release
VersionReleasedR
0.1.2 current2 Dec 20244.4.2
0.1.114 Nov 20244.4.2
0.1.018 Sep 20244.4.1
Release notes (0.1.2)

Bug fixes

  • Fixed a bug caused by upgrading to S7 0.2.0.