Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 6, 2023
1 parent 26113f4 commit 0ef807d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/format_p_adjust.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ format_p_adjust <- function(method) {
## TODO add "mvt" method from emmeans

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

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


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

0 comments on commit 0ef807d

Please sign in to comment.