Skip to content

ExactMed

0.3.0Package record

Exact Mediation Analysis for Binary Outcomes

0packages depend
3.1Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

A tool for conducting exact parametric regression-based causal mediation analysis of binary outcomes as described in Samoilenko, Blais and Lefebvre (2018) doi:10.1353/obs.2018.0013; Samoilenko, Lefebvre (2021) doi:10.1093/aje/kwab055; and Samoilenko, Lefebvre (2023) doi:10.1002/sim.9621.

Changes in 0.3.0
  • Added the new function exactmed_cat(), which computes mediation effects when the mediator is categorical.
  • In exactmed_c() when used with case-control data, the residual mean square error (MSE) has been replaced by the *weighted* MSE as the estimator of the error variance ($\sigma^2$) of the mediator regression model.
  • Documentation fixes and updates.

---

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 3.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.0
READMEYes · 16 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · mentions 0.3.0Citation fileNoWebsiteYes · pkgdown
Help pages
6
Examples that run
100%3 run in a plain check
Exported functions with examples
100%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
50%

Downloads

3.1K
CRAN downloads in the past year
Rank #15,128 · ~8/day · ~258/mo
Daily download trend is not available in this view yet.
31330 days
79790 days
3.1K1 year
Compare downloads with other packages →
Also on68 r2u2 autocran

Repository

1Stars
0Forks
0Open issues
0Open PRs
2Releases
39Commits
1Commit identities
39 commits · Last activity 2023-09-25
Responsiveness
How these are sampled
PRs merged (all time)
not measured
Median days to close, 50 most recently updated closed issues
188
Median days to close, 50 most recently updated closed PRs
not measured

Stars over time

2025-04-19 · 12026-07-07 · 1
PracticesBeta

7 development-tooling and community-health practices detected across 4 families in the upstream repository

Checks run against github.com/caubm/exactmed on 2026-10-18.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (3)
pkgdown

GitHub Pages site last deployed 2023-09-25 · The repository has a site deploy workflow

pkgdown site last built 2023-09-25

CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)

Installing ExactMed adds 19 packages (9 with compiled code, 10 MB of source tarballs). Heaviest: brglm2 2.3 MB, Rcpp 1.8 MB, sandwich 1.4 MB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (4)
Author, Maintainer since 0.1.0 (2022)
Author · added in 0.3.0
Releases (3)

Pick two releases to compare their code metrics.

  • 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
  • 0.3.0Latest
    record
    2023-09-22 · current release · diff ↗ ·
    added 1 export
    exactmed_cat
  • R
    R 4.3.0 released · 2023-04-21
  • 0.2.0
    record
    2023-03-19 · diff ↗ ·
    added 1 export
    exactmed_c
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.0
    record
    2022-03-09
  • R
    R 4.1.0 released · 2021-05-18

Package metadata

First published
2022-03-09
Total releases
3 / 4 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5.0
Bundled data
36 KB / 3 files
Download size
123 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ExactMed")
Caubet, M., Gervais, J., Lefebvre, G., & Samoilenko, M. (2023). ExactMed: Exact Mediation Analysis for Binary Outcomes (Version 0.3.0) [Computer software]. https://doi.org/10.32614/CRAN.package.ExactMed

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

Cite the 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 ExactMed version 0.3.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy