jacob-long / jtools

Tools for summarizing/visualizing regressions and other helpful stuff
https://jtools.jacob-long.com
GNU General Public License v3.0
165 stars 22 forks source link

Argument "at" in effect_plot #68

Closed pascalsiemsen closed 2 years ago

pascalsiemsen commented 5 years ago

Thanks a lot for the package. Super nice graphs with a minimum of effort - that is nice. I ran a logistic regression and find the effect plot really helpful. As I understand it, the mean for concinnous and the reference category for categorical variables is used.

I wanted to set the values of some control variables with the argument "at" and created the named list. I do get the same results though (the variables I want to change are factor btw) and it seems "at" is ignored.

data(bacteria)
l_mod <- glm(y ~ trt + week, data = bacteria, family = binomial)
summ(l_mod)

effect_plot(l_mod, pred = trt, centered = "none", interval = TRUE, y.label = "% testing positive")
ex  <- list(week = 11)
effect_plot(l_mod, pred = trt, centered = "none", at = ex, interval = TRUE, y.label = "% testing positive")
jacob-long commented 2 years ago

Looks like this was fixed at some point in the years since you shared the bug. Thanks for reporting.