cocor.indep.groups(r1.jk, r2.hm, n1, n2, alternative = "two.sided", test = "all", alpha = 0.05, conf.level = 0.95, null.value = 0, data.name = NULL, var.labels = NULL, return.htest = FALSE)
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.fisher1925
or zou2007
). Use all
to apply all tests (default). For further information see the tests section below.zou2007
is used). The default value is $.95$.zou2007
that uses a confidence interval is available.FALSE
.fisher1925
is used).fisher1925
is used).fisher1925
is used).zou2007
is used).Fisher, R. A. (1921). On the probable error of a coefficient of correlation deduced from a small sample. Metron, 1, 1-32.
Fisher, R. A. (1925). Statistical methods for research workers. Edinburgh, Scotland: Oliver and Boyd. Retrieved from http://psychclassics.yorku.ca/
Peters, C. C., & Van Voorhis, W. R. (1940). Statistical procedures and their mathematical bases. New York: McGraw-Hill.
Zou, G. Y. (2007). Toward using confidence intervals to compare correlations. Psychological Methods, 12, 399-413. doi:10.1037/1082-989X.12.4.399
# Compare the difference between two correlations based
# on two independent groups:
r1.jk <- .7 # Correlation between age and intelligence measured in group 1
n1 <- 305 # Size of group 1
r2.hm <- .6 # Correlation between age and intelligence measured in group 2
n2 <- 210 # Size of group 2
cocor.indep.groups(r1.jk, r2.hm, n1, n2, data.name=c("group1", "group2"),
var.labels=c("age", "intelligence", "age", "intelligence"))
Run the code above in your browser using DataLab