Dear all,

I would like to use predict.lm to obtain a set of predicted values based on
a regression model I estimated.

When I apply predict.lm to two vectors that have the same values, the
predicted values will be identical. I know that my regression model is not
perfect and I would like to take account of the error inherent in the model
within my predictions. So, while I understand that the expected value of
both vectors should be the same (since they have the same value), I would
like to have different predictions to take account of the error inherent in
my model.

I assume I can probably use se.fit to achieve my objective of including
"random error" in my predictions but I don't really know how. Could anybody
give me a pointer on how this can be done?

Thanks,

Michael

        [[alternative HTML version deleted]]

______________________________________________
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.

Reply via email to