Learn R Programming

⚠️There's a newer version (2.2) of this package.Take me there.

bmem (version 1.5)

Mediation analysis with missing data using bootstrap

Description

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.

Copy Link

Version

Install

install.packages('bmem')

Monthly Downloads

329

Version

1.5

License

GPL-2

Maintainer

Zhiyong Zhang

Last Published

October 8th, 2013

Functions in bmem (1.5)

bmem.mi.jack

Jackknife for multiple imputation
bmem.list

Estimate a mediaiton model based on listwise deletion
plot.bmem

Plot of the bootstrap distribution
bmem.ci.bc1

Bias-corrected confidence intervals (for a single variable)
bmem.pair.jack

Jackknife for pairwise deletion
bmem.list.jack

Jackknife for listwise deletion
bmem.ci.norm

Confidence interval based on normal approximation
bmem.list.cov

Covariance matrix for listwise deletion
popPar

Get the population parameter values
bmem.ci.p

Percentile confidence interval
power.curve

Generate a power curve
bmem.mi.cov

Covariance estimation for multiple imputation
summary.power

Organize the results into a table
bmem.moments

Calculate the moments of a data set
bmem.ci.bca

Bias-corrected and accelerated confidence intervals
bmem.sobel

Mediation analysis using sobel test (for complete data only)
bmem.list.boot

Bootstrap for listwise deletion method
bmem.ci.bca1

BCa for a single variable
bmem.mi.boot

Bootstrap for multiple imputation
bmem.em.boot

Bootstrap for EM
bmem.ssq

Sum square of a matrix
bmem.em.jack

Jackknife estimate using EM
summary.bmem

Calculate bootstrap confidence intervals
bmem.em.cov

Covariance matrix from EM
bmem.plot

Plot of the bootstrap distribution. This function is replaced by plot.
bmem

Mediation analysis based on bootstrap
bmem.bs

Bootstrap but using the Bollen-Stine method
bmem.pair

Estimate a mediaiton model based on pairwise deletion
bmem-package

Mediation analysis with missing data using bootstrap
power.basic

Conducting power analysis based on Sobel test
bmem.em

Estimate a mediation model based on EM covariance matrix
bmem.v

Select data according to a vector of indices
bmem.sobel.ind

Mediation analysis using sobel test for one indirect effect
bmem.pair.boot

Bootstrap for pairwise deletion
power.boot

Conducting power analysis based on bootstrap
bmem.mi

Estimate a mediation model based on multiple imputation
bmem.pattern

Obtain missing data pattern information
bmem.pair.cov

Covariance matrix estimation based on pairwise deletion
bmem.cov

Calculate the covariance matrix based on a given ram model
bmem.em.rcov

Estimation of robust covariance matrix
bmem.raw2cov

Convert a raw moment matrix to covariance matrix
bmem.sem

Estimate a mediaiton model using SEM technique
bmem.ci.bc

Bias-corrected confidence intervals