Skip to content

Mediation Analysis with Missing Data Using Bootstrap

0packages depend
5.1Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Four methods for mediation analysis with missing data: Listwise deletion, Pairwise deletion, Multiple imputation, and Two Stage Maximum Likelihood algorithm. For MI and TS-ML, auxiliary variables can be included. Bootstrap confidence intervals for mediation effects are obtained. The robust method is also implemented for TS-ML. Since version 1.4, bmem adds the capability to conduct power analysis for mediation models. Details about the methods used can be found in these articles. Zhang and Wang (2003) doi:10.1007/s11336-012-9301-5. Zhang (2014) doi:10.3758/s13428-013-0424-0.

Install

Health

CRAN checks
13OK
Slowest check: 2.5 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 2.3
READMENoVignettesNoNEWSNoCitation fileNoWebsiteYes
Help pages
43includes a package overview page
Examples that run
33%1 run in a plain check · 2 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
7%
Documented parameters
100%
Return-value docs
41%
Help pages citing references
16%

Downloads

5.1K
CRAN downloads in the past year
Rank #6,001 · ~14/day · ~422/mo
Daily download trend is not available in this view yet.
50430 days
1.4K90 days
5.1K1 year
Compare downloads with other packages →
Also on121 r2u41 autocran52 c2d4u

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)

Installing bmem adds 23 packages (13 with compiled code, 18 MB of source tarballs). Heaviest: lme4 4.1 MB, nloptr 2.1 MB, Rcpp 1.8 MB.

Depends (4)
R >= 1.7AmeliaMASSsnowfall
Imports (2)
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 1.1 (2011)
Releases (13)

Pick two releases to compare their code metrics.

  • 2.3Latest
    record
    2026-08-31 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 2.2
    record
    2025-09-03 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 2.1
    record
    2023-08-27 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0
    record
    2022-12-16 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 1.8
    record
    2020-09-20 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.7
    record
    2020-04-21 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
Show 14 earlier eventsHide 14 earlier events
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • 1.5
    record
    2013-10-08 · diff ↗
  • 1.4
    record
    2013-06-26 · diff ↗ ·
    added 4 exports
    power.basic, power.boot, power.curve, popPar
  • R
    R 3.0.0 released · 2013-04-03
  • 1.3
    record
    2012-06-26 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 1.2.2
    record
    2011-11-08 · diff ↗ ·
    added 1 export
    bmem.cov
  • 1.2.1
    record
    2011-11-07 · diff ↗
  • 1.2
    record
    2011-11-06 · diff ↗ ·
    added 36 exports
    bmem.moments, bmem.list.cov, bmem.pair.cov, bmem.sem, bmem.sobel, bmem.sobel.ind, bmem.list, bmem.pair, bmem.mi.cov, bmem.v, bmem.mi, bmem.pattern, bmem.ssq, bmem.em.cov, bmem.em.rcov, bmem.em, bmem.list.jack, bmem.pair.jack, bmem.mi.jack, bmem.em.jack, bmem.list.boot, bmem.pair.boot, bmem.mi.boot, bmem.em.boot, bmem.ci.p, bmem.ci.norm, bmem.ci.bc, bmem.ci.bc1, bmem.ci.bca, bmem.ci.bca1 and 6 more
  • R
    R 2.14.0 released · 2011-10-31
  • 1.1
    record
    2011-04-28
  • R
    R 2.13.0 released · 2011-04-13

Package metadata

First published
2011-04-28
Total releases
13 / 15 yrs
License
GPL-2 OSI
Minimum R
≥ 1.7
Download size
837 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("bmem")
Zhang, Z., & Wang, L. (2026). bmem: Mediation Analysis with Missing Data Using Bootstrap (Version 2.3) [Computer software]. https://doi.org/10.32614/CRAN.package.bmem

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 bmem version 2.3 [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