interactions icon indicating copy to clipboard operation
interactions copied to clipboard

ymin and ymax are of different distance from the mean in cat_plot when used with glm.nb

Open RonEfrat opened this issue 2 years ago • 0 comments

Hi,

First thanks for the great package!

I tried to use cat_plot with a glm.nb model that has two categorical variables and their interactions (y ~ A*B). Surprisingly, the mean does not sit in the middle between the ymin and ymax. For example, for group A1B1, the mean is 14.4, ymax is 17.5 and ymin is 11.9. Using the same variables in a regular (non nb) glm returned normal results (the mean was in the middle). I assume this is an error, as I can't think of a reason that the positive and negative CI (these are CI right?) will be different.

Thanks in advance.

RonEfrat avatar Oct 30 '22 08:10 RonEfrat