Dear all
Does any of you have and idea of how to calculate prediction errors or uncertainty by groups of observations?
Say I have a dataset of individual observations in a country and I predict average grades (gpa) by the following linear regression:
reg gpa age i.gender i.fathereducation
predict yhat
So by tabstat yhat, by(region) I get the predicted grades by region, but how do I calculate the s.e. or confidence/prediction interval by region?
Thanks a lot
Does any of you have and idea of how to calculate prediction errors or uncertainty by groups of observations?
Say I have a dataset of individual observations in a country and I predict average grades (gpa) by the following linear regression:
reg gpa age i.gender i.fathereducation
predict yhat
So by tabstat yhat, by(region) I get the predicted grades by region, but how do I calculate the s.e. or confidence/prediction interval by region?
Thanks a lot
Comment