Meng's Z-test for correlated correlation coefficients
This function implements Meng's z-test for correlated correlations (Meng,
Rubin, & Rosenthal (1992), Comparing Correlated Correlation Coefficients,
Psych Bulletin 111(1), 172-175.)
mengz(r1, r2, r12, n) compares two correlations r1 and r2:
r1: correlation between X and Y
r2: correlation between X and Z
rx: correlation between Y and Z
n: number of observations used to compute correlations
mengz(R, k, n) tests the heterogeneity of a correlation matrix with
respect to correlating with the variable indicated by index k. This test
is a chi-squared test, so output argument z is actually a chi-squared
statistic.
mengz(R, k, n, lambda) tests the contrast indicated by vector lambda.
h: hypothesis outcome (1 - reject null hypothesis of equal correlations
under alpha level of 0.05 (one-tailed))
p: chance of falsely rejecting null hypothesis
z: computed z- or chi-square score of Meng's test
Copyright (C) 2012 Eelke Spaak, Donders Institute for Brain, Cognition,
and Behaviour, Nijmegen, The Netherlands
Cite As
Eelke Spaak (2024). Meng's Z-test for correlated correlation coefficients (https://www.mathworks.com/matlabcentral/fileexchange/37867-meng-s-z-test-for-correlated-correlation-coefficients), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |