PRINT problem

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
likykiki
Posts: 11
Joined: Mon Aug 12, 2013 11:42 am

PRINT problem

Unread post by likykiki »

I'm using Rats to forecast volatility, when I finished, i tried to print the forecast values, so i used print function, but rats said that " the second half of parameter is absent", anyone knows what does this sentence mean?
I also tried display function, but display cant show series. i think my codes are ok, i also tried " print rfor 1 500", buy why rats says "Tried to Use Series Number 500, Only 12 Are Available" Is it because my data are not correct? or it's my codes problem?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: [Urgent] about the print problem

Unread post by TomDoan »

It's

PRINT 1 500 RFOR

Instructions that can take an unlimited number of series (PRINT, COPY, TABLE, GARCH and a few others) have the range first.
likykiki
Posts: 11
Joined: Mon Aug 12, 2013 11:42 am

Re: [Urgent] about the print problem

Unread post by likykiki »

TomDoan wrote:It's

PRINT 1 500 RFOR

Instructions that can take an unlimited number of series (PRINT, COPY, TABLE, GARCH and a few others) have the range first.
Ahh! thank you very much Tom! I made a stupid mistake :)
likykiki
Posts: 11
Joined: Mon Aug 12, 2013 11:42 am

Re: [Urgent] about the print problem

Unread post by likykiki »

TomDoan wrote:It's

PRINT 1 500 RFOR

Instructions that can take an unlimited number of series (PRINT, COPY, TABLE, GARCH and a few others) have the range first.

Hello, Tom, i got another problem,what is the default value of a linear regression model's coefficient, for example,

linreg(noprint) c i-499 i
#c{1}

do j = tau1,tau2
set ract j j = r(i+j)
set rfor j j = q(i)*(1-%beta(1)**j)+r(i)*(%beta(1)**j)
end do j

what does %beta(1) represent ? is beta(1) represents the coefficients series?
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: [Urgent] about the print problem

Unread post by TomDoan »

likykiki wrote: Hello, Tom, i got another problem,what is the default value of a linear regression model's coefficient, for example,

linreg(noprint) c i-499 i
#c{1}

do j = tau1,tau2
set ract j j = r(i+j)
set rfor j j = q(i)*(1-%beta(1)**j)+r(i)*(%beta(1)**j)
end do j

what does %beta(1) represent ? is beta(1) represents the coefficients series?
%BETA(n) is the nth coefficient in the most recent estimation instruction. (LINREG, NLLS, MAXIMIZE, etc.).
Post Reply