Learn R Programming

iMediate (version 0.5.5)

iMediate-package: Likelihood Methods for Statistical Mediation Analysis

Description

iMediate is a collection of methods developed by our group for mediation analysis. It contains methods built upon likelihoods. Use ?iMediate to see an introduction.

Arguments

Details

Package: iMediate
Type: Package
Version: 0.5
Date: 2018-08-29
License: GPL (>=2)
LazyLoad: yes

References

Wang, K. (2018) Understanding power anomalies in mediation analysis. Psychometrika 83 (2), 387-406.

Wang, K. (2019) Maximum likelihood analysis of mediation models with treatment-mediator interaction. Revision submitted.

Wang, K. (2019) Likelihood-based analysis of the statistical effects of a treatment on an outcome. To be submitted.

Berger, R.L. (1997) Likelihood ratio tests and intersection-union tests. Advances in statistical decision theory and applications. Birkh\"auser Boston, 225-237.

Examples

Run this code
# NOT RUN {
data("jobs", package = "mediation")

fit.M <- lm(job_seek ~ treat + econ_hard + sex + age, data=jobs)
fit.Y <- lm(depress2 ~ treat * job_seek + econ_hard + sex + age, data=jobs)
mdn(fit.M, fit.Y, "treat")

# }

Run the code above in your browser using DataLab