MultisiteMediation
0.0.4Causal Mediation Analysis in Multisite Trials
Overview
Multisite causal mediation analysis using the methods proposed by Qin and Hong (2017) doi:10.3102/1076998617694879, Qin, Hong, Deutsch, and Bein (2019) doi:10.1111/rssa.12446, and Qin, Deutsch, and Hong (2021) doi:10.1002/pam.22268. It enables causal mediation analysis in multisite trials, in which individuals are assigned to a treatment or a control group at each site. It allows for estimation and hypothesis testing for not only the population average but also the between-site variance of direct and indirect effects transmitted through one single mediator or two concurrent (conditionally independent) mediators. This strategy conveniently relaxes the assumption of no treatment-by-mediator interaction while greatly simplifying the outcome model specification without invoking strong distributional assumptions. This package also provides a function that can further incorporate a sample weight and a nonresponse weight for multisite causal mediation analysis in the presence of complex sample and survey designs and non-random nonresponse, to enhance both the internal validity and external validity. The package also provides a weighting-based balance checking function for assessing the remaining overt bias.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE2026-07-1811 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-07-0810 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-1012 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 78%
Downloads
Repository
Stars over time
Forks over time
Repository practices
Checks run against github.com/xu-qin/multisitemediation on 2026-08-16.
No development-tooling practices detected in the upstream repository.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
Author records are not tracked yet for this package.
4 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.0.4Latest
- RR 4.1.0 released · 2021-05-18
- 0.0.32020-05-27 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.0.22018-06-15 · diff ↗
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- 0.0.12017-02-26
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2017-02-26
- Total releases
- 4 / 9 yrs
- License
- GPL-2 OSI
- Bundled data
- 13 KB / 2 files
- Download size
- 54 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("MultisiteMediation")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.