I am comparing various groups, where for one group I have > 2 classes and for one group I have only two classes.
My data:
structure(list(lake_method = structure(c(3L, 3L, 3L, 3L, 3L,
3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L, 3L), levels = c("Clear Lake - Angling",
"Clear Lake - E-fishing", "Clear Lake - Spearfishing", "Cultus Lake - Angling"
), class = "factor"), group = c("TOTAL cpuefh", "TOTAL cpuekgh",
"MM cpuefh", "MM-N cpuefh", "MM-NN cpuefh", "MF cpuefh", "J cpuefh",
"TOTAL cpuefh", "TOTAL cpuekgh", "MM cpuefh", "MM-N cpuefh",
"MM-NN cpuefh", "MF cpuefh", "J cpuefh", "TOTAL cpuefh", "TOTAL cpuekgh",
"MM cpuefh", "MM-N cpuefh", "MM-NN cpuefh", "MF cpuefh"), value = c(3.20045832408987,
0.627289831521615, NA, NA, NA, 3.20045832408987, NA, 13.6134036988146,
1.23881973659213, NA, NA, NA, NA, 13.6134036988146, 65.5138665685633,
15.4612725101809, NA, NA, NA, 65.5138665685633)), row.names = c(NA,
-20L), class = c("tbl_df", "tbl", "data.frame"))
The problem is when I create the ggbetweenstats plot for the group that has three classes, I get a Games-Howell pairwise comparison:
p1 <- ggbetweenstats(
data = dplyr::filter(data_violin_f, group == "MM cpuefh"),
x = lake_method,
y = value,
xlab = "",
ylab = "fish/h",
title = "MM fish/h of smallmouth bass captured per method (both lakes)",
pairwise.comparisons = TRUE, ## display pairwise comparisons
results.subtitle = FALSE,
pairwise.display = "s",
p.adjust.method = "none" ## adjust p-values for multiple tests using this method
)
p1
while when I have only two classes it automatically computes a t-test, which gives me different p-values:
p2 <- ggbetweenstats(
data = dplyr::filter(data_violin_f, group == "MM-N cpuefh"),
x = lake_method,
y = value,
xlab = "",
ylab = "fish/h",
title = "MM-N fish/h of smallmouth bass captured per method (both lakes)",
pairwise.comparisons = TRUE, ## display pairwise comparisons
results.subtitle = TRUE,
pairwise.display = "s",
p.adjust.method = "none", ## adjust p-values for multiple tests using this method
)
p2
Now I want to change it so that it gives me a Games-Howell comparison as well for the two so that the plots are the same.
I can not, however find any vignette or documentation on how to change the type of parametric test, only how to change to non-parametric etc...
I have found this code piece in the official documentation:
PMCMRplus::gamesHowellTest()
and also another one to change from t-test to one-way ANOVA. But how do I incorporate that into my code?
Help is highly appreciated, spent hours searching, couldnt find a solution :D
I looked into the documentation and couldnt find how to change the type of test carried out