[R] Variance of Y_hat in a linear model

2006-10-17 Thread Li Zhang
Y X Z 42.07.0 33.0 33.04.0 41.0 75.0 16.07.0 28.03.0 49.0 91.0 21.05.0 55.08.0 31.0 data-read.table(d.txt,header=TRUE) mod-lm(data$Y~data$X+data$Z) predict(mod) 123456

Re: [R] Variance of Y_hat in a linear model

2006-10-17 Thread Gabor Grothendieck
Using the builtin BOD data set try this: predict(lm(demand ~., BOD), se.fit = TRUE) On 10/17/06, Li Zhang [EMAIL PROTECTED] wrote: Y X Z 42.07.0 33.0 33.04.0 41.0 75.0 16.07.0 28.03.0 49.0 91.0 21.05.0 55.08.0 31.0