Package: macc 1.0.1
Yi Zhao
macc: Mediation Analysis of Causality under Confounding
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, <arxiv:1410.7217> for details.
Authors:
macc_1.0.1.tar.gz
macc_1.0.1.tar.gz(r-4.5-noble)macc_1.0.1.tar.gz(r-4.4-noble)
macc_1.0.1.tgz(r-4.4-emscripten)macc_1.0.1.tgz(r-4.3-emscripten)
macc.pdf |macc.html✨
macc/json (API)
# Install 'macc' in R: |
install.packages('macc', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- env.single - Simulated single-level dataset
- env.three - Simulated three-level dataset
- env.two - Simulated two-level dataset
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 7 years agofrom:18846160c4. Checks:OK: 2. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Dec 11 2024 |
R-4.5-linux | OK | Dec 11 2024 |
Exports:maccsim.data.multisim.data.single
Dependencies:abindbackportsbootbroomcarcarDataclicolorspacecowplotcpp11DerivdoBydplyrfansifarverFormulagenericsggplot2gluegtableisobandlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellnlmenloptrnnetnumDerivoptimxpbkrtestpillarpkgconfigpracmapurrrquantregR6RColorBrewerRcppRcppEigenrlangscalesSparseMstringistringrsurvivaltibbletidyrtidyselectutf8vctrsviridisLitewithr
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Causal Mediation Analysis under Correlated Errors | macc-package |
Simulated single-level dataset | env.single |
Simulated three-level dataset | env.three |
Simulated two-level dataset | env.two |
Mediation Analysis of Causality under Confounding | macc |
Generate two/three-level simulation data | sim.data.multi |
Generate single-level simulation data | sim.data.single |