Skip to content

Commit 0ef807d

Browse files
committed
1 parent 26113f4 commit 0ef807d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/format_p_adjust.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ format_p_adjust <- function(method) {
3939
## TODO add "mvt" method from emmeans
4040

4141
# prepare arguments
42-
all_methods <- c(tolower(stats::p.adjust.methods), "tukey", "scheffe", "sidak")
42+
all_methods <- c(stats::p.adjust.methods, "tukey", "scheffe", "sidak")
4343

4444
# for interaction terms, e.g. for "by" argument in emmeans
4545
# pairwise comparison, we have to adjust the rank resp. the
@@ -60,7 +60,7 @@ format_p_adjust <- function(method) {
6060

6161

6262
# only proceed if valid argument-value
63-
if (tolower(p_adjust) %in% all_methods) {
63+
if (tolower(p_adjust) %in% tolower(all_methods)) {
6464
# save old values, to check if p-adjustment worked
6565
old_p_vals <- params$p
6666
# find statistic column

0 commit comments

Comments
 (0)