partial regression plots in natural scale (Poisson) #364
Replies: 1 comment
-
|
Note that adding just the model constant term is not sufficient to put the partial effect plot on to the natural response scale in the case of models, like yours, that involve a non-identity link function. You can achieve what you want two ways with gratia:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone!
I would like to ask about partial regression plots using poisson or nb distribution using the draw function.
I am currently using the draw() function as follows:
draw(m1, select = "s(month)", residuals = TRUE)
to plot the partial regression plots of my GAM model. However, I would like to visualize the Y-axis in its natural (response) scale, as my model uses a negative binomial distribution.
I was also wondering if it is possible to shift the scale so that the intercept is included, making the plot more interpretable. I know that in mgcv this can be done using:
plot(gam_model, seWithMean = TRUE, shift = coef(gam_model)[1])
Is there a similar option to achieve this in gratia?
Best regards,
Nicolás Hazzi
Beta Was this translation helpful? Give feedback.
All reactions