Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2015 Apr 2;10(3):e0121945.
doi: 10.1371/journal.pone.0121945. eCollection 2015.

cocor: a comprehensive solution for the statistical comparison of correlations

Affiliations

cocor: a comprehensive solution for the statistical comparison of correlations

Birk Diedenhofen et al. PLoS One. .

Erratum in

Abstract

A valid comparison of the magnitude of two correlations requires researchers to directly contrast the correlations using an appropriate statistical test. In many popular statistics packages, however, tests for the significance of the difference between correlations are missing. To close this gap, we introduce cocor, a free software package for the R programming language. The cocor package covers a broad range of tests including the comparisons of independent and dependent correlations with either overlapping or nonoverlapping variables. The package also includes an implementation of Zou's confidence interval for all of these comparisons. The platform independent cocor package enhances the R statistical computing environment and is available for scripting. Two different graphical user interfaces-a plugin for RKWard and a web interface-make cocor a convenient and user-friendly tool.

PubMed Disclaimer

Conflict of interest statement

Competing Interests: The authors have declared that no competing interests exist.

Figures

Fig 1
Fig 1. A flowchart of how to use the four main functions of cocor, displaying all available tests.
For each case, an example of the formula passed as an argument to the cocor() function and the required correlation coefficients for the functions cocor.indep.groups(), cocor.dep.groups.overlap(), and cocor.dep.groups.nonoverlap() are given. The test label before the colon may be passed as a function argument to calculate specific tests only.
Fig 2
Fig 2. Screenshot of the cocor GUI plugin for RKWard.
Fig 3
Fig 3. Screenshot of the cocor web interface on http://comparingcorrelations.org.

References

    1. Baguley T. Serious Stats: A Guide to Advanced Statistics for the Behavioral Sciences. Basingstoke, UK: Palgrave Macmillan; 2012.
    1. Bakeman R, Robinson BF. Understanding Statistics in the Behavioral Sciences. Mahwah, NJ: Lawrence Erlbaum; 2005.
    1. Freund JE, Simon GA. Modern Elementary Statistics. 9th ed. London, UK: Prentice-Hall; 1997.
    1. Larson R, Farber B. Elementary Statistics: Picturing the World. 5th ed. Boston, MA: Pearson; 2011.
    1. Wright DB, London K. First (and Second) Steps in Statistics. 2nd ed. London, UK: Sage; 2009.