Package: bmem 2.1

bmem: Mediation Analysis with Missing Data Using Bootstrap

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>.

Authors:Zhiyong Zhang and Lijuan Wang

bmem_2.1.tar.gz
bmem_2.1.zip(r-4.5)bmem_2.1.zip(r-4.4)bmem_2.1.zip(r-4.3)
bmem_2.1.tgz(r-4.4-any)bmem_2.1.tgz(r-4.3-any)
bmem_2.1.tar.gz(r-4.5-noble)bmem_2.1.tar.gz(r-4.4-noble)
bmem_2.1.tgz(r-4.4-emscripten)bmem_2.1.tgz(r-4.3-emscripten)
bmem.pdf |bmem.html
bmem/json (API)

# Install 'bmem' in R:
install.packages('bmem', repos = c('https://johnnyzhz.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

41 exports 2 stars 0.23 score 26 dependencies 6 scripts 483 downloads

Last updated 1 years agofrom:68e825c047. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 01 2024
R-4.5-winNOTESep 01 2024
R-4.5-linuxNOTESep 01 2024
R-4.4-winOKSep 01 2024
R-4.4-macOKSep 01 2024
R-4.3-winOKSep 01 2024
R-4.3-macOKSep 01 2024

Exports:bmembmem.bsbmem.ci.bcbmem.ci.bc1bmem.ci.bcabmem.ci.bca1bmem.ci.normbmem.ci.pbmem.covbmem.embmem.em.bootbmem.em.covbmem.em.jackbmem.em.rcovbmem.listbmem.list.bootbmem.list.covbmem.list.jackbmem.mibmem.mi.bootbmem.mi.covbmem.mi.jackbmem.momentsbmem.pairbmem.pair.bootbmem.pair.covbmem.pair.jackbmem.patternbmem.plotbmem.raw2covbmem.sembmem.sobelbmem.sobel.indbmem.ssqbmem.vplot.bmempopParpower.basicpower.bootpower.curvesummary.bmem

Dependencies:abindAmeliaarmbootcodaforeignlatticelavaanlme4MASSMatrixmiminqamnormtnlmenloptrnumDerivpbivnormquadprogRcppRcppArmadilloRcppEigenrlangsemsnowsnowfall

Readme and manuals

Help Manual

Help pageTopics
Mediation analysis with missing data using bootstrapbmem-package
Mediation analysis based on bootstrapbmem
Bootstrap but using the Bollen-Stine methodbmem.bs
Bias-corrected confidence intervalsbmem.ci.bc
Bias-corrected confidence intervals (for a single variable)bmem.ci.bc1
Bias-corrected and accelerated confidence intervalsbmem.ci.bca
BCa for a single variablebmem.ci.bca1
Confidence interval based on normal approximationbmem.ci.norm
Percentile confidence intervalbmem.ci.p
Calculate the covariance matrix based on a given ram modelbmem.cov
Estimate a mediation model based on EM covariance matrixbmem.em
Bootstrap for EMbmem.em.boot
Covariance matrix from EMbmem.em.cov
Jackknife estimate using EMbmem.em.jack
Estimation of robust covariance matrixbmem.em.rcov
Estimate a mediaiton model based on listwise deletionbmem.list
Bootstrap for listwise deletion methodbmem.list.boot
Covariance matrix for listwise deletionbmem.list.cov
Jackknife for listwise deletionbmem.list.jack
Estimate a mediation model based on multiple imputationbmem.mi
Bootstrap for multiple imputationbmem.mi.boot
Covariance estimation for multiple imputationbmem.mi.cov
Jackknife for multiple imputationbmem.mi.jack
Calculate the moments of a data setbmem.moments
Estimate a mediaiton model based on pairwise deletionbmem.pair
Bootstrap for pairwise deletionbmem.pair.boot
Covariance matrix estimation based on pairwise deletionbmem.pair.cov
Jackknife for pairwise deletionbmem.pair.jack
Obtain missing data pattern informationbmem.pattern
Plot of the bootstrap distribution. This function is replaced by plot.bmem.plot
Convert a raw moment matrix to covariance matrixbmem.raw2cov
Estimate a mediaiton model using SEM techniquebmem.sem
Mediation analysis using sobel test (for complete data only)bmem.sobel
Mediation analysis using sobel test for one indirect effectbmem.sobel.ind
Sum square of a matrixbmem.ssq
Select data according to a vector of indicesbmem.v
Plot of the bootstrap distributionplot plot.bmem
Get the population parameter valuespopPar
Conducting power analysis based on Sobel testpower.basic
Conducting power analysis based on bootstrappower.boot
Generate a power curvepower.curve
Calculate bootstrap confidence intervalssummary summary.bmem
Organize the results into a tablesummary.power