The data in compiled format are analyzed with an Analysis of Frequency Data method (described in (Laurencelle and Cousineau 2023) .
minimalExample
An object of class data.frame.
Laurencelle L, Cousineau D (2023). “Analysis of frequency tables: The ANOFA framework.” The Quantitative Methods for Psychology, 19, 173--193. doi:10.20982/tqmp.19.2.p173 .
library(ANOFA)
# the minimalExample data (it has absolutely no effect...)
minimalExample
#> Intensity Pitch Frequency
#> 1 Low Soft 2
#> 2 Medium Soft 3
#> 3 High Soft 5
#> 4 Low Hard 4
#> 5 Medium Hard 2
#> 6 High Hard 4
# perform an anofa on this dataset
w <- anofa( Frequency ~ Intensity * Pitch, minimalExample)
# We analyse the intensity by levels of pitch
e <- emFrequencies(w, ~ Intensity | Pitch)
# decompose by
f <- contrastFrequencies(e, list(
"low & medium compared to high" = c(1,1,-2)/2,
"low compared to medium " = c(1,-1,0)))