Learn R Programming

multilevel (version 2.7)

cordif.dep: Estimate whether two dependent correlations differ

Description

Tests for statistical differences between two dependent correlations using the formula provided on page 56 of Cohen & Cohen (1983). The function returns a t-value, the DF, and the p-value.

Usage

cordif.dep(r.x1y,r.x2y,r.x1x2,n)

Arguments

r.x1y

The correlation between x1 and y where y is typically the outcome variable.

r.x2y

The correlation between x2 and y where y is typically the outcome variable.

r.x1x2

The correlation between x1 and x2 (the correlation between the two predictors).

n

The sample size.

Value

Returns three values. A t-value, DF and p-value.

References

Cohen, J. & Cohen, P. (1983). Applied multiple regression/correlation analysis for the behavioral sciences (2nd Ed.). Hillsdale, nJ: Lawrence Erlbaum Associates.

See Also

cordif

Examples

Run this code
# NOT RUN {
cordif.dep(r.x1y=.30,r.x2y=.60,r.x1x2=.10,n=305)
# }

Run the code above in your browser using DataLab