I am trying to get the confidence intervals with the predict function for a glm in R (so I can then plot them as a geom_ribbon in ggplot).
These three options give me exaclty the same answer, i.e. the confidence intervals and prediction intervals are not working.
predict(model, newdata = plotdat)
predict(model, newdata = plotdat, interval = "confidence")
predict(model, newdata = plotdat, interval = "prediction")
Please help!