I use poisson regression (glm()
with family='poisson'
) and would like to give the answers in the form:
"Each predicted value has an error from the interval [low, high] with probability 0.95".
- Is it possible to do? If yes, how?
- I see few ways.
1) Compute residuals and get the low and high values. Which distribution should I use?
2)
Use function predict.glm(model, type = 'link', se.fit=TRUE)
.
Compute confidence intervals for normal distribution. Use
model$family$linkinv()
to figure out low and high values.
I have implemented the second case. The question is how can I give the answers in the form described above?