[R] predict.lm - standard error of predicted means?

2005-07-20 Thread kehler
Simple question. For a simple linear regression, I obtained the "standard error of predicted means", for both a confidence and prediction interval: x<-1:15 y<-x + rnorm(n=15) model<-lm(y~x) predict.lm(model,newdata=data.frame(x=c(10,20)),se.fit=T,interval="confidence")$se.fit 1 2

[R] Negative binomial glm and dispersion

2004-05-28 Thread Dan Kehler
d. Df Resid. Dev P(>|Chi|) NULL99102.038 x 10.18598101.853 0.705 # But the "real" chi-square probability is 1-pchisq(0.185,1) [1] 0.667 Thanks in advance, Dan ________ Daniel Kehler Dept.