Exact Mediation Analysis for Binary Outcomes
Overview
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.
- 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
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- 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
Repository
- 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
Releases over time
Issues over time
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.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2023-09-25 · The repository has a site deploy workflow
pkgdown site last built 2023-09-25
Dependencies
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.3.0Latest
- RR 4.3.0 released · 2023-04-21
- 0.2.0
- RR 4.2.0 released · 2022-04-22
- 0.1.02022-03-09
- RR 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")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.
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.