Skip to content

Commit

Permalink
Update estimate_means.R
Browse files Browse the repository at this point in the history
  • Loading branch information
DominiqueMakowski committed Oct 3, 2022
1 parent e947644 commit f7e2b1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/estimate_means.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ estimate_means <- function(model,
# Table Formating ----------------------------------------------------------


.estimate_means_footer <- function(x, at = NULL, type = "means", adjust = NULL) {
.estimate_means_footer <- function(x, at = NULL, type = "means", p_adjust = NULL) {
table_footer <- paste("\nMarginal", type)

# Levels
Expand All @@ -173,8 +173,8 @@ estimate_means <- function(model,
}

# P-value adjustment footer
if (!is.null(adjust) && "p" %in% names(x)) {
if (adjust == "none") {
if (!is.null(p_adjust) && "p" %in% names(x)) {
if (p_adjust == "none") {
table_footer <- paste0(table_footer, "\np-values are uncorrected.")
} else {
table_footer <- paste0(table_footer, "\np-value adjustment method: ", parameters::format_p_adjust(adjust))
Expand Down

0 comments on commit f7e2b1e

Please sign in to comment.