Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 15, 2024
1 parent a1a8d37 commit 5e279fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/get_marginalmeans.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

# setup arguments
fun_args <- list(
model,
by = at_specs$varname,
conf_level = ci,
type = type,
Expand All @@ -32,7 +33,7 @@

# we can use this function for contrasts as well,
# just need to add "hypothesis" argument
means <- suppressWarnings(do.call("marginaleffects::avg_predictions", fun_args))
means <- suppressWarnings(do.call(marginaleffects::avg_predictions, fun_args))

attr(means, "at") <- my_args$by
attr(means, "by") <- my_args$by
Expand Down

0 comments on commit 5e279fc

Please sign in to comment.