Hi,

I use the following regression:

Code:
reg y x i.time [pweight=weight], r
predict yhat, xb
bysort time: egen mean_yhat = mean(y_hat)
Are the predicted values based on the weighted regressions? Or do I need to weight the predicted values again (when calculating mean_yhat).

Thank you so much for your help!