Re: [R] Can not get a prediction interval from Predict

2009-03-31 Thread Sundar Dorai-Raj
?predict.glm has no "interval" argument. Perhaps you're thinking of ?predict.lm, which is different. To get intervals in glm, I've used: example(predict.glm) pr <- predict(budworm.lg, se.fit = TRUE) family <- family(budworm.lg) lower <- family$linkinv(pr$fit - qnorm(0.95) * pr$se.fit) upper <- fa

[R] Can not get a prediction interval from Predict

2009-03-31 Thread Taylor Davis
I am trying to get a prediction interval from a glm regression. With newdat being my set of values to be fitted, and glmreg the name of my regression, I am using the following code. predict(glmreg, newdat, se.fit = TRUE, interval = "confidence", level = 0.90) The problem is that I am only gettin