The first program is ok. But the second program kills the Eviews and forces me to shut down.
Pnl is a data series with 100+ observations
Program 1:
%table="zz_total_stats"
table {%table}
{%table}(1,1)=@quantile(pnl,0.05,"b")
{%table}(2,1)=@quantile(pnl,0.05,"r")
{%table}(3,1)=@quantile(pnl,0.05,"o")
{%table}(4,1)=@quantile(pnl,0.05,"t")
{%table}(5,1)=@quantile(pnl,0.05,"v")
{%table}(6,1)=@quantile(pnl,0.05,"g")
Program2:
!row=0
for %type b r o t v g
!row=!row+1
{%table}(!row,1)=@quantile(pnl,0.05,{%type})
next
Quantile function
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- EViews Developer
- Posts: 563
- Joined: Thu Apr 25, 2013 7:48 pm
Re: Quantile function
Hello,
You don't need the {}'s around {%type} in your call to @quantile. EViews should error rather than crash in this case, we'll fix that.
You don't need the {}'s around {%type} in your call to @quantile. EViews should error rather than crash in this case, we'll fix that.
Who is online
Users browsing this forum: No registered users and 51 guests