Ricardo L Gómez <rgomezye <at> educ.umass.edu> writes: > lm(formula = outcom ~ vari1 + vari2 + dummy1 + dummy2) .. > but now, using this model, I need to calculate the predicted value of > OUTCOM (only for one observation) , when vari1=8 and vari 2 =64, and > also the confidence interval....(the data set has total of 24 > observations),
There is an example in predict.lm that does exactly what you need. Dieter ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.