Compare two overlapping correlations based on dependent groups
Compare two overlapping correlations based on dependent groups
Performs a test of significance for the difference between two correlations based on dependent groups (e.g., the same group). The two correlations are overlapping, i.e., they have one variable in common. The comparison is made between r.jk and r.jh. The function tests whether the correlations between j and k (r.jk) and between j and h (r.jh) differ in magnitude. Because the significance depends on the intercorrelation between k and h (r.kh), this intercorrelation has to be provided as an additional parameter. The function expects correlation coefficients as input.
cocor.dep.groups.overlap( r.jk, r.jh, r.kh, n, alternative ="two.sided", test ="all", alpha =0.05, conf.level =0.95, null.value =0, data.name =NULL, var.labels =NULL, return.htest =FALSE)
Arguments
r.jk: A number specifying the correlation between j and k (this correlation is used for comparison)
r.jh: A number specifying the correlation between j and h (this correlation is used for comparison)
r.kh: A number specifying the correlation between k and h
n: An integer defining the size of the group
alternative: A character string specifying whether the alternative hypothesis is two-sided ("two.sided"; default) or one-sided ("greater" or "less", depending on the direction). Optionally, the initial letter of the character strings ("t", "g", and "l)" can be used.
test: A vector of character strings specifying the tests to be used (pearson1898, hotelling1940, hendrickson1970, williams1959, olkin1967, dunn1969, steiger1980, meng1992, hittner2003, or zou2007). Use all to apply all tests (default). For further information see the tests section below.
alpha: A number defining the alpha level for the hypothesis test. The default value is .05.
conf.level: A number defining the level of confidence for the confidence interval (if test meng1992 or zou2007 is used). The default value is .95.
null.value: A number defining the hypothesized difference between the two correlations used for testing the null hypothesis. The default value is 0. If the value is other than 0, only the test zou2007 that uses a confidence interval is available.
data.name: A character string giving the name of the data/group.
var.labels: A vector of three character strings specifying the labels for j, k, and h (in this order).
return.htest: A logical indicating whether the result should be returned as a list containing a list of class 'htest' for each test. The default value is FALSE.
Returns
Returns an S4 object of class 'cocor.dep.groups.overlap' with the following slots: - r.jk: Input parameter
r.jh: Input parameter
r.kh: Input parameter
n: Input parameter
alternative: Input parameter
alpha: Input parameter
conf.level: Input parameter
null.value: Input parameter
data.name: Input parameter
var.labels: Input parameter
diff: Difference between the two correlations, r.jk and r.jh, that were compared
For each test a slot of the same name exists with a list containing the following elements: - statistic: The value of the test statistic (unless test zou2007 is used).
distribution: The distribution of the test statistic (unless test zou2007 is used).
df: The degrees of freedom of the distribution of the test statistic (if test hotelling1940, hendrickson1970, or williams1959 is used).
p.value: The p-value of the test (unless test zou2007 is used).
conf.int: The confidence interval of the difference between the two correlations (if test meng1992 or zou2007 is used).
Tests
In the following, rjk and rjh are the two correlations that are being compared; Zjk and Zjh are their Z transformed equivalents. rkh is the related correlation that is additionally required. n specifies the size of the group the two correlations are based on. Some tests make use of Fisher's r-to-Z transformation (1921, p. 26):
Z=21(ln(1+r)−ln(1−r)).Z=(1/2)(ln(1+r)−ln(1−r)).
pearson1898:: Pearson and Filon's (1898) z
This test was proposed by Pearson and Filon (1898, p. 259, formula xxxvii). The test statistic $z$ is computed as
(Hotelling, 1940, p. 278, formula 7) with $df = n - 3$, where
∣R∣=1+2rjkrjhrkh−rjk2−rjh2−rkh2
(Hotelling, 1940, p. 278). The test statistic is also given in Steiger (1980, p. 246), Glass and Stanley (1984, p. 311, formula 15.7), and Hittner, May, and Silver (2003, p. 152).
williams1959:: Williams' (1959) t
This test is a modification of Hotelling's (1940) $t$ and was suggested by Williams (1959). Two mathematically different formulae for Williams' $t$ can be found in the literature (Hittner et al., 2003, p. 152). This is the version that Hittner et al. (2003, p. 152) labeled as "standard Williams' $t$":
An alternative formula for Williams' $t$---termed as "Williams' modified $t$ per Hendrickson, Stanley, and Hills (1970)" by Hittner et al. (2003, p. 152)---is implemented in this function as `hendrickson1970` (see below). The test statistic of `williams1959` is also given in Steiger (1980, p. 246, formula 7) and Neill and Dunn (1975, p. 533).
Results of `williams1959` are in accordance with the results of the software DEPCORR by Hittner and May (1998) and DEPCOR by Silver, Hittner, and May (2006). However, we found several typographical errors in formulae that also claim to compute Williams' $t$. For example, the formula reported by Boyer, Palachek, and Schucany (1983, p. 76) contains an error because the term $(1 - r_{rk})$ is not being cubed. There are also typographical errors in the formula described by Hittner et al. (2003, p. 152). For example, $r_{jk} - r_{jh}$ is divided instead of being multiplied by the square root term, and in the denominator of the fraction in the square root term, there are additional parentheses so that the whole denominator is multiplied by 2. These same errors can also be found in Wilcox and Tian (2008, p. 107, formula 1).
olkin1967:: Olkin's (1967) z
In the original article by Olkin (1967, p. 112) and in Hendrickson, Stanley, and Hills (1970, p. 190, formula 2), the reported formula contains a typographical error. Hendrickson and Collins (1970, p. 639) provide a corrected version. In the revised version, however, $n$ in the enumerator is decreased by 1. This function implements the corrected formula without the decrement. The formula implemented in this function is used by Glass and Stanley (1970, p. 313, formula 14.19), Hittner et al. (2003, p. 152), and May and Hittner (1997a, p. 259; 1997b, p. 480):
hendrickson1970:: Hendrickson, Stanley, and Hills' (1970) modification of Williams' (1959) t
This test is a modification of Hotelling's (1940) $t$ and was suggested by Williams (1959). Two mathematically different formulae of Williams' (1959) $t$ can be found in the literature. `hendrickson1970` is the version that Hittner et al. (2003, p. 152) labeled as "Williams' modified $t$ per Hendrickson, Stanley, and Hills (1970)". An alternative formula termed as "standard Williams' $t$" by Hittner et al. (2003, p. 152) is implemented as `williams1959` (see above). The `hendrickson1970` formula can be found in Hendrickson, Stanley, and Hills (1970, p. 193), May and Hittner (1997a, p. 259; 1997b, p. 480), and Hittner et al. (2003, p. 152):
with $df = n - 3$. A slightly changed version of this formula was provided by Dunn and Clark (1971, p. 905, formula 1.2), but seems to be erroneous, due to an error in the denominator.
steiger1980:: Steiger's (1980) modification of Dunn and Clark's (1969) z using average correlations
This test was proposed by Steiger (1980) and is a modification of Dunn and Clark's (1969) $z$. Instead of $r_{jk}$ and $r_{jh}$, the mean of the two is used. The test statistic $z$ is defined as
($f$ must be $\le 1$; Meng et al., 1992, p. 173, formula 3), and
r2=2rjk2+rjh2r2=(rjk2+rjh2)/2
(Meng et al., 1992, p. 173). This test also constructs a confidence interval of the difference between the two correlation coefficients $r_{jk}$ and $r_{jh}$:
(Meng et al., 1992, p. 173, formula 4). $\alpha$ denotes the desired alpha level of the confidence interval. If the confidence interval includes zero, the null hypothesis that the two correlations are equal must be retained. If zero is outside the confidence interval, the null hypothesis can be rejected.
hittner2003:: Hittner, May, and Silver's (2003) modification of Dunn and Clark's (1969) z using a backtransformed average Fisher's (1921) Z procedure
The approach to backtransform averaged Fisher's (1921) $Z$s was first proposed by Silver and Dunlap (1987) and was applied to the comparison of overlapping correlations by Hittner et al. (2003). The test is based on Steiger's (1980) approach. The test statistic $z$ is calculated as
This test calculates the confidence interval of the difference between the two correlation coefficients $r_{jk}$ and $r_{jh}$. If the confidence interval includes zero, the null hypothesis that the two correlations are equal must be retained. If the confidence interval does not include zero, the null hypothesis has to be rejected. A lower and upper bound for the interval ($L$ and $U$, respectively) is given by
(Zou, 2007, p. 406). $\alpha$ denotes the desired alpha level of the confidence interval.
Examples
# Compare the difference between the correlations (age, intelligence) and# (age, shoe size) measured in the same group (all values are fictional):r.jk <-.2# Correlation (age, intelligence)r.jh <-.5# Correlation (age, shoe size)r.kh <-.1# Correlation (intelligence, shoe size)n <-315# Size of the groupcocor.dep.groups.overlap(r.jk, r.jh, r.kh, n, var.labels=c("age","intelligence","shoe size"))
References
Boyer, I. E., Palachek, A. D., & Schucany. W. R. (1983). An empirical study of related correlation coefficients. Journal of Educational Statistics, 8, 75-86. doi:10.2307/1164871
Dunn, O. J. & Clark, V. A. (1969). Correlation coefficients measured on the same individuals. Journal of the American Statistical Association, 64, 366-377. doi:10.2307/2283746
Dunn, O. J. & Clark, V. A. (1971). Comparison of tests of the equality of dependent correlation coefficients. Journal of the American Statistical Association, 66, 904-908. doi:10.2307/2284252
Fisher, R. A. (1921). On the probable error of a coefficient of correlation deduced from a small sample. Metron, 1, 1-32.
Glass, G. V., & Stanley, J. C. (1970). Statistical methods in eduction and psychology. Englewood Cliffs, NJ: Prentice-Hall.
Glass, G. V., & Stanley, J. C. (1984). Statistical methods in eduction and psychology (2nd ed.). Englewood Cliffs, NJ: Prentice-Hall.
Hendrickson, G. F., Stanley J. C., & Hills, J. R. (1970). Olkin's new formula for significance of r13 vs. r23 compared with Hotelling's method. American Educational Research Journal, 7, 189-195. doi:10.2307/1162159
Hendrickson, G. F., & Collins, J. R. (1970). Note correcting the results in "Olkin's new formula for the significance of r13 vs. r23 compared with Hotelling's method". American Educational Research Journal, 7, 639-641. doi:10.2307/1161847
Hittner, J. B., & May, K. (1998). DEPCORR: A SAS program for comparing dependent correlations. Applied Psychological Measurement, 22, 93-94. doi:10.1177/01466216980221010
Hittner, J. B., May, K., & Silver, N. C. (2003). A Monte Carlo evaluation of tests for comparing dependent correlations. The Journal of General Psychology, 130, 149-168. doi:10.1080/00221300309601282
Hotelling, H. (1940). The selection of variates for use in prediction, with some comments on the general problem of nuisance parameters. Annals of Mathematical Statistics, 11, 271-283. doi:10.1214/aoms/1177731867
May, K., & Hittner, J. B., (1997a) - A note on statistics for comparing dependent correlations. Psychological Reports, 80, 475-480. doi:10.2466/pr0.1997.80.2.475
May, K., & Hittner, J. B. (1997b). Tests for comparing dependent correlations revisited: A Monte Carlo study. The Journal of Experimental Education, 65, 257-269. doi:10.1080/00220973.1997.9943458
Meng, X. L., Rosenthal, R., & Rubin, D. B. (1992). Comparing correlated correlation coefficients. Psychological Bulletin, 111, 172-175. doi:10.1037//0033-2909.111.1.172
Neill, J. J., & Dunn, O. J. (1975). Equality of dependent correlation coefficients. Biometrics, 31, 531-543. doi:10.2307/2529435
Olkin, I. (1967). Correlations revisited. In J. C. Stanley (Ed.), Improving experimental design and statistical analysis (pp. 102-128). Chicago, IL: Rand McNally.
Pearson, K., & Filon, L. N. G. (1898). Mathematical contributions to theory of evolution: IV. On the probable errors of frequency constants and on the influence of random selection and correlation. Philosophical Transactions of the Royal Society of London, Series A, 191, 229-311. doi:10.1098/rsta.1898.0007
Silver, N. C , & Dunlap, W. P. (1987). Averaging correlation coefficients: Should Fisher's Z transformation be used? Journal of Applied Psychology, 72, 146-148. doi:10.1037//0021-9010.72.1.146
Silver, N. C., Hittner, J. B., & May, K. (2004). Testing dependent correlations with nonoverlapping variables: A Monte Carlo simulation. Journal of Experimental Education, 73, 53-69. doi:10.3200/JEXE.71.1.53-70
Silver, N. C., Hittner, J. B., & May, K. (2006). A FORTRAN 77 program for comparing dependent correlations. Applied Psychological Measurement, 30, 152-153. doi:10.1177/0146621605277132
Steiger, J. H. (1980). Tests for comparing elements of a correlation matrix. Psychological Bulletin, 87, 245-251. doi:10.1037//0033-2909.87.2.245
Wilcox, R. R., & Tian, T. (2008). Comparing dependent correlations. The Journal of General Psychology, 135, 105-112. doi:10.3200/GENP.135.1.105-112
Williams, E. J. (1959). The comparison of regression variables. Journal of the Royal Statistical Society, Series B, 21, 396-399. Retrieved from http://www.jstor.org/stable/2983809
Zou, G. Y. (2007). Toward using confidence intervals to compare correlations. Psychological Methods, 12, 399-413. doi:10.1037/1082-989X.12.4.399