Learn R Programming

macc (version 1.0.1)

Mediation Analysis of Causality under Confounding

Description

Performs causal mediation analysis under confounding or correlated errors. This package includes a single level mediation model, a two-level mediation model, and a three-level mediation model for data with hierarchical structures. Under the two/three-level mediation model, the correlation parameter is identifiable and is estimated based on a hierarchical-likelihood, a marginal-likelihood or a two-stage method. See Zhao, Y., & Luo, X. (2014), Estimating Mediation Effects under Correlated Errors with an Application to fMRI, for details.

Copy Link

Version

Install

install.packages('macc')

Monthly Downloads

124

Version

1.0.1

License

GPL (>= 2)

Maintainer

Last Published

August 23rd, 2017

Functions in macc (1.0.1)

macc

Mediation Analysis of Causality under Confounding
sim.data.multi

Generate two/three-level simulation data
env.single

Simulated single-level dataset
env.three

Simulated three-level dataset
sim.data.single

Generate single-level simulation data
env.two

Simulated two-level dataset
macc-package

Causal Mediation Analysis under Correlated Errors