Skip to content

MultisiteMediation

Causal Mediation Analysis in Multisite Trials

v0.0.4 · Sep 5, 2021 · GPL-2

Description

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.

Downloads

237

Last 30 days

13328th

237

Last 90 days

237

Last year

CRAN Check Status

2 NOTE
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (14 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Xu Qin <xuqin@pitt.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Xu",
                      family = "Qin",
                      role = c("aut", "cre"),
                      email = "xuqin@pitt.edu"),
               person(given = "Guanglei",
                      family = "Hong",
                      role = "aut"),
               person(given = "Jonah",
                      family = "Deutsch",
                      role = "aut"),
               person(given = "Edward",
                      family = "Bein",
                      role = "aut"))
as necessary.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Xu Qin <xuqin@pitt.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Xu",
                      family = "Qin",
                      role = c("aut", "cre"),
                      email = "xuqin@pitt.edu"),
               person(given = "Guanglei",
                      family = "Hong",
                      role = "aut"),
               person(given = "Jonah",
                      family = "Deutsch",
                      role = "aut"),
               person(given = "Edward",
                      family = "Bein",
                      role = "aut"))
as necessary.
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
OK r-oldrel-macos-arm64

*


            
OK r-oldrel-macos-x86_64

*


            
OK r-oldrel-windows-x86_64

*


            
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Xu Qin <xuqin@pitt.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Xu",
                      family = "Qin",
                      role = c("aut", "cre"),
                      email = "xuqin@pitt.edu"),
               person(given = "Guanglei",
                      family = "Hong",
                      role = "aut"),
               person(given = "Jonah",
                      family = "Deutsch",
                      role = "au
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Xu Qin <xuqin@pitt.edu>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Xu",
                      family = "Qin",
                      role = c("aut", "cre"),
                      email = "xuqin@pitt.edu"),
               person(given = "Guanglei",
                      family = "Hong",
                      role = "aut"),
               person(given = "Jonah",
                      family = "Deutsch",
                      role = "au

Dependency Network

Dependencies Reverse dependencies lme4 statmod psych MASS ggplot2 MultisiteMediation

Version History

new 0.0.4 Mar 10, 2026