Hi,
I love the idea of effect_plot(), but I get the following error when trying to plot the results of a glm. I think the issue comes from the use of cbind in the formula.
Error: Can't recycle input of size 2 to size 1.
Backtrace:
- jtools::effect_plot(test_glm, pred = Age)
- vctrs:::stop_recycle_incompatible_size(...)
- vctrs:::stop_vctrs(...)
An example that produces the error:
pacman::p_load(jtools, titanic)
df <- titanic::titanic_train
test_glm <- glm(cbind(Survived, 1 - Survived) ~ Sex + Age, data = df, family = binomial)
summary(test_glm)
effect_plot(test_glm, pred = Age)
Thank you in advance for any help!
Hi,
I love the idea of effect_plot(), but I get the following error when trying to plot the results of a glm. I think the issue comes from the use of cbind in the formula.
Error: Can't recycle input of size 2 to size 1.
Backtrace:
An example that produces the error:
Thank you in advance for any help!