SHAZAM Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Residual variance

Hi should I use the following code to save the residual variance:

assuming sample 1 to 20

OLS Y X / PREDICT=YPRED GENR RES=(Y-YPRED)*2 GEN1 RVAR=(1/(20-1))Sum(RES)

Maybe i am missing something..I did not get the residual variance.Please help.

Residual variance

Hi should I use the following code to save the residual variance:

assuming sample 1 to 20

OLS Y X  / PREDICT=YPRED
GENR RES=(Y-YPRED)*2
RES=(Y-YPRED)**2
GEN1 RVAR=(1/(20-1))Sum(RES)

RVAR=(1/(20-1))*Sum(RES)

Maybe i am missing something..I did not get the residual variance.Please help.