Error trying to plot effects of a GLM with prior weights. Works well for models without weights.
model <- glm(predation ~ habitat, weights = rep(10, 360), data = lake)
#> Error in eval(mf, parent.frame()): object 'lake' not found
effect_plot(model, pred = habitat)
#> Error in effect_plot(model, pred = habitat): could not find function "effect_plot"
version
#> _
#> platform x86_64-w64-mingw32
#> arch x86_64
#> os mingw32
#> crt ucrt
#> system x86_64, mingw32
#> status
#> major 4
#> minor 4.0
#> year 2024
#> month 04
#> day 24
#> svn rev 86474
#> language R
#> version.string R version 4.4.0 (2024-04-24 ucrt)
#> nickname Puppy Cup
packageVersion("ggplot2")
#> [1] '3.5.1'
packageVersion("jtools")
#> [1] '2.2.2'
Error trying to plot effects of a GLM with prior weights. Works well for models without weights.