Skip to content

Commit

Permalink
Update get_marginalcontrasts.R
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 21, 2025
1 parent 2456c88 commit 94accfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_marginalcontrasts.R
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ get_marginalcontrasts <- function(model,
# for `estimate = "average"`, we cannot create a data grid, thus we need to
# filter manually. However, for all other `estimate` options, we can simply
# use the data grid for filtering
if (!identical(estimate, "average")) {
if (!identical(estimate, "average") && !is.null(original_by)) {
my_args$by <- original_by
by_filter <- NULL
} else if (!is.null(by_token)) {
Expand Down

0 comments on commit 94accfe

Please sign in to comment.