[R] Predict
Dieter Menne
dieter.menne at menne-biomed.de
Fri Dec 19 12:20:48 CET 2008
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
More information about the R-help
mailing list