Writing out residuals into excel file
Posted: Fri Aug 22, 2014 12:07 pm
Hi, I am wondering how to extract residuals from multiple regressions. Right now I want to test out a series of independent variables and then look at the residuals from each regression. Currently I have
for %1 "x1" "x2"...
regress y {%1}
smpl %start %end
series {%1} = resids
excel_output.add {%1}
next
write(t=xls) excel_ouput
I have been running into many syntax errors and excel only recording one residual series. Any help would be greatly appreciated. Thanks!
for %1 "x1" "x2"...
regress y {%1}
smpl %start %end
series {%1} = resids
excel_output.add {%1}
next
write(t=xls) excel_ouput
I have been running into many syntax errors and excel only recording one residual series. Any help would be greatly appreciated. Thanks!