Not Another Post Hoc Paper: A New Look at Contrast Analysis and Planned Comparisons

Umberto Granziol*, Maximilian Rabe, Marcello Gallucci, Andrea Spoto, Giulio Vidotto

*Corresponding author af dette arbejde

Publikation: Bidrag til tidsskriftTidsskriftartikelForskningpeer review

Abstract

Before conducting statistical analyses, scholars and researchers often have specific hypotheses about differences between groups of means. Their hypotheses are frequently tested by applying post hoc comparisons with statistically significant simple or interaction effects. With the exception of exploratory studies, using post hoc comparisons can increase Type I error rates and decrease statistical power. A well-known solution involves planning comparisons before the study. However, the coding of such planned comparisons can be difficult to understand and implement, especially for customized comparisons and interaction effects. In this tutorial, we aim to reduce such difficulties by examining all the possible types of planned comparisons, even the customized ones, for both main and interaction effects. In this tutorial, a Shiny App coded in R and called “appRiori” is presented. appRiori is coded to help in understanding both the logic behind the planned comparisons and the way to interpret them when a model is tested. By using empirical examples on reproducible data, we explain how to code any default planned comparison executable in R. Moreover, through some features of appRiori, the customization of planned comparisons is shown, even on interaction effects, such as the possibility of creating customized contrast through click-and-drop menus. For each step, the R code related to the planned comparison is provided. Implications and fields of use of planned comparisons and appRiori are discussed.

OriginalsprogEngelsk
TidsskriftAdvances in Methods and Practices in Psychological Science
Vol/bind8
Udgave nummer1
ISSN2515-2459
DOI
StatusUdgivet - 1 jan. 2025

Bibliografisk note

Publisher Copyright:
© The Author(s) 2025.

Citationsformater