Contrast analysis for competing hypotheses: A tutorial using the R package cofad
Researchers in psychology traditionally use analysis of variance to examine differences between multiple groups or conditions. A less well-known, but valuable alternative is contrast analysis - a simple statistical method for testing directional, theoretically motivated hypotheses that are defined prior to data collection. In this article, we review the core concepts of contrast analysis for testing hypotheses in between-subjects and within-subjects designs. We also outline and demonstrate the largely unknown possibility of directly testing two competing contrasts against each other. In the tutorial part of the article, we show how such competing-contrast analyses can be conducted in the free, open-source software R using the package cofad. Because competing-contrast analysis is a straightforward, flexible, highly powered, and hypothesis-driven approach, it is a valuable tool to extend the understanding of cognitive and behavioral processes in psychological research.
Authors
- Johannes Titz (ORCID: https://orcid.org/0000-0002-1102-5719)
- Mirka Henninger (ORCID: https://orcid.org/0000-0003-4676-2361)
- Simone Malejka (ORCID: https://orcid.org/0000-0002-7012-627X)
Institutions
- University of Cologne (DE)
- University of Basel (CH)
- Chemnitz University of Technology (DE)
Publication Details
- Journal
- Behavior Research Methods
- Published
- 2025-10-29
- DOI
- https://doi.org/10.3758/s13428-025-02833-w
- Primary Topic
- Mental Health Research Topics
- Type
- article
- Field-Weighted Citation Impact
- 0.00