taking coefficients out of a rolling regression

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
abdullah
Posts: 2
Joined: Fri Apr 29, 2011 11:10 am

taking coefficients out of a rolling regression

Unread post by abdullah »

Hi,
I am new to this forum and to the RATS. So, I did not know where to put my question exactly. Here it is:
This is the rolling regression down that I have:
compute start = 1971:1, end = 1980:1
do i=1,40
linreg DLOGVALUE start+i end+i
# constant DLOGVALUE{1}
end
I have to get coefficients out of this rolling regression and make a table consisting of them. Could you please help me on how to do this?

Thanks in advance,
Abdullah.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: taking coefficients out of a rolling regression

Unread post by TomDoan »

The easiest way to do that is by using the ROLLREG procedure, which is described in section 11.2 of the RATS v8 User's Guide and posted on the forum at http://www.estima.com/forum/viewtopic.php?f=7&t=741 (and is also on the RATS distribution).

Code: Select all

@rollreg(move=your window size,cohistory=coeffs) dlogvalue 1971:1 (1980:1)+40
# constant dlogvalue{1}
print / coeffs
abdullah
Posts: 2
Joined: Fri Apr 29, 2011 11:10 am

Re: taking coefficients out of a rolling regression

Unread post by abdullah »

It helped a lot. Thank you so much Tom.
Post Reply