Skip to content

MultisiteMediation

0.0.4

Causal Mediation Analysis in Multisite Trials

0packages depend
3Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by Xu QinFirst published 2017-02-264 releasesCRAN page ↗GitHub ↗

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

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 3.6 min · r-oldrel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
5
Dependencies · direct
Check history
  • NOTE2026-07-18
    11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-08
    10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
78%

Downloads

3K
CRAN downloads in the past year
Rank #14,157 · ~8/day · ~247/mo
Daily download trend is not available in this view yet.
15130 days
72490 days
3K1 year
Compare downloads with other packages →
Also on131 r2u14 autocran29 c2d4u

Repository

Repository
1Stars
1Forks
0Open issues
0Open PRs
0Releases
9Commits
1Contributors
9 commits · Last activity 2017-02-26 · 0% stars, 30d

Stars over time

2025-10-24 · 12026-07-07 · 1

Repository practices

Upstream repositoryBeta

Checks run against github.com/xu-qin/multisitemediation on 2026-08-16.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
4 external dependencies (excludes base and recommended)
Imports (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (4)
no longer listed · 0.0.1 to 0.0.4
no longer listed · 0.0.1 to 0.0.4
no longer listed · 0.0.2 to 0.0.4
no longer listed · 0.0.2 to 0.0.4
Package Timeline

4 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.0.4Latest
    2021-09-05 · current release · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.0.3
    2020-05-27 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 0.0.2
    2018-06-15 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • 0.0.1
    2017-02-26
  • R
    R 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
Appears in task views

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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for MultisiteMediation version 0.0.4 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy