Record the results from a series of rolling regression
Posted: Mon Aug 24, 2009 2:04 pm
Hi, I implemented a series of rolling regression, as follows:
compute start=1979:3, end=1996:4
do i = 0, 48
linreg(noprint) y start+i end+i
# constant x1 x2
display i %beta $
%stderrs
end do i
How could I record the coefficients and std from each regression in a vector and write them in an excel?
It will be convenient for me to Graph and Record.
Thanks for kind reply and suggestions.
compute start=1979:3, end=1996:4
do i = 0, 48
linreg(noprint) y start+i end+i
# constant x1 x2
display i %beta $
%stderrs
end do i
How could I record the coefficients and std from each regression in a vector and write them in an excel?
It will be convenient for me to Graph and Record.
Thanks for kind reply and suggestions.