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 5ad388f commit a1a8d37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/get_marginalmeans.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@
by = at_specs$varname,
conf_level = ci,
type = type,
hypothesis = hypothesis,
re.form = NULL
hypothesis = hypothesis
)
fun_args <- insight::compact_list(c(fun_args, list(...)))

## TODO: need to check against different mixed models results from other packages
# set to NULL
fun_args$re.form = NULL

Check warning on line 31 in R/get_marginalmeans.R

View workflow job for this annotation

GitHub Actions / lint-changed-files / lint-changed-files

file=R/get_marginalmeans.R,line=31,col=20,[assignment_linter] Use <-, not =, for assignment.

Check warning on line 31 in R/get_marginalmeans.R

View workflow job for this annotation

GitHub Actions / lint / lint

file=R/get_marginalmeans.R,line=31,col=20,[assignment_linter] Use <-, not =, for assignment.

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

0 comments on commit a1a8d37

Please sign in to comment.