Page 1 of 1

PERCENTILE

Posted: Thu Jan 02, 2020 1:38 pm
by cristianlb
Hi there, I hope you are keeping well.

I need to get the percentil 1% of a return serie and it is not possible. I receive the message "@PCTILES is an illegal or reserved name". I am employing the following instruction:

scalar perc_rprice=@pctiles(rprice,0.01)

I saw a couple of post about it and the solution is use rank or quantil instead of percentile. Nevertheless, these are not the solution that I need. Please find attached my workfile (Eviews 10).

Please your support and comments.
Many thanks

Re: PERCENTILE

Posted: Mon Jan 06, 2020 10:13 am
by EViews Gareth
Don't you just want @quantile?

Re: PERCENTILE

Posted: Mon Jan 06, 2020 1:10 pm
by cristianlb
Hi, thanks for your message.

I must obtain a percentile metric. Please tell me if Eviews is able to do that and how can I do it.

I await your comments.
Many thanks.
CSS

Re: PERCENTILE

Posted: Mon Jan 06, 2020 1:22 pm
by EViews Gareth
Perhaps you could define a “percentile metric”

Re: PERCENTILE

Posted: Mon Jan 06, 2020 1:53 pm
by cristianlb
I need to get the percentil 1% of a return serie and it is not possible. I receive the message "@PCTILES is an illegal or reserved name". I am employing the following instruction (Eviews 10):

scalar perc_rprice=@pctiles(rprice,0.01)

Please find attached my file.

I await your comments.
Many thanks

Re: PERCENTILE

Posted: Mon Jan 06, 2020 1:55 pm
by EViews Gareth
So use the @quantile function

Re: PERCENTILE

Posted: Mon Jan 06, 2020 2:04 pm
by cristianlb
mmmm, but you are not clearing my doubt. could you do it?.
Thanks

Re: PERCENTILE

Posted: Mon Jan 06, 2020 2:11 pm
by EViews Gareth
I don't know what your doubt is, so I cannot clear it.

Re: PERCENTILE

Posted: Tue Jan 07, 2020 5:28 am
by cristianlb
Sir,

I imagine that you have used excel. Excel has a function percentile. Please find attached a file with an example of a return series. Sheet2: percentil 1% = -2,96%

Can Eviews replicate this simple calculation and how can do it?. Also, again I have attached eviews workfile in order to do this calculation.

Please explain clearly how can I use the function @pctiles.

I await your comments.

Re: PERCENTILE

Posted: Tue Jan 07, 2020 8:18 am
by EViews Gareth
Have you tried @quantile? It does the same thing as the percentile function in Excel.

Re: PERCENTILE

Posted: Tue Jan 07, 2020 10:43 am
by cristianlb
yes I did. and the result is not the same.

So, for "n" times, could you please give any useful support about my questions?.

Thanks,

Re: PERCENTILE

Posted: Tue Jan 07, 2020 11:24 am
by EViews Gareth
I'm trying to help, but I don't see why @quantile doesn't do what you want it to.
2020-01-07_102320.png
2020-01-07_102320.png (309.88 KiB) Viewed 15078 times
The slight difference is because of the interpolation method, probably (it isn't clear what methods Excel uses for interpolation).

Re: PERCENTILE

Posted: Tue Jan 07, 2020 12:48 pm
by EViews Matt
After a quick empirical check, it appears that Excel is using the van der Waerden interpolation method. That isn't the default interpolation method for EViews, but it is available, e.g.

Code: Select all

scalar perc_rprice=@quantile(exceldata,0.01,"v")

Re: PERCENTILE

Posted: Wed Jan 08, 2020 6:15 am
by cristianlb
Many Thanks.

Best Regards.