problem with quantile function

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

tospol.kaw
Posts: 2
Joined: Mon May 21, 2012 1:52 am

problem with quantile function

Postby tospol.kaw » Mon May 21, 2012 2:12 am

-9018.631165000001
-4107.883231
-2741.856
-1977.900775
-1363.424099
-695.0278893
-366.0882408
-258.1590605
-5.82e-11
-5.82e-11
-5.82e-11
-5.82e-11
-5.82e-11
-5.82e-11
-5.82e-11
-5.82e-11
-2.91e-11
-2.91e-11
-2.91e-11
-2.91e-11
-2.91e-11
-2.91e-11
-2.91e-11

According to function @quantile(xxx , 0.02 , "g"), why can't I calculate 2nd percentile of above data?
And why option of this function can't change the result in any rank?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13605
Joined: Tue Sep 16, 2008 5:38 pm

Re: problem with quantile function

Postby EViews Gareth » Mon May 21, 2012 7:40 am

What do you mean you can't calculate it? I just tried it on that data, and it returned a result.

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: problem with quantile function

Postby startz » Mon May 21, 2012 8:06 am

When I try it I get all NA. Could this have to do with asking for the second percentile with only 3 obs?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13605
Joined: Tue Sep 16, 2008 5:38 pm

Re: problem with quantile function

Postby EViews Gareth » Mon May 21, 2012 8:28 am

Ah, it seems to depend on whether you use it as a series or a scalar expression. Scalar seems to work. I'll take a look at why series is not.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13605
Joined: Tue Sep 16, 2008 5:38 pm

Re: problem with quantile function

Postby EViews Gareth » Mon May 21, 2012 9:24 am

Ok, there was a bug in the series version of @quantile that meant that the "g" option wasn't being recognised. We'll fix that in the next patch. In the meantime you can change your code to be:

Code: Select all

@quantile(xxx , 0.02 , 6)
where the "6" is a magic option that means "gumbel", and it works without the fix.

tospol.kaw
Posts: 2
Joined: Mon May 21, 2012 1:52 am

Re: problem with quantile function

Postby tospol.kaw » Tue May 22, 2012 12:55 am

Thanks a lot.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests