Skip to content
Prev 2442 / 7420 Next

Calculate Prediction Interval for Regression by hand...

Hi again,

thank you all for you tips with predict, predict.lm etc.
Error for intercept and slopes. With confint I can get confidence
intervals (?) for these parameters for different levels.

I want to calculate it by hand, rather then by using R's predict
function, due to some reasons:

1) I want to get the mathematical background
2) I want to use it in a model outside of grass (python-model, and
I don't want to use a direct interaction python-R)
3) I want to calculate it with simple programming languages (e.g. simplest form of basic etc.)

In wikipedia it says that it is possible to calculate the prediction interval from the standard error of the parameters. So how is that done exactly? Can anyone guide me to the formula? Or is it just 

Y=b+Intercept + (a1+SE(a1))*X1+(a2+SE(a2)*X2 (of course with all variations in plus and minus SE)?

Your help is greatly appreciated!

/johannes

-------- Original-Nachricht --------
--