how to write percentile rank code

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Batbold
Posts: 9
Joined: Mon Jul 21, 2014 1:33 am

how to write percentile rank code

Postby Batbold » Mon Jul 21, 2014 2:10 am

hello
i have a series X and want to find percentile rank of each element of this series and also create series consisting of those percentile rank(order of series is like X). could you hlep me how to write eviews code?

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

Re: how to write percentile rank code

Postby EViews Gareth » Mon Jul 21, 2014 7:53 am

Code: Select all

series perranks = @ranks(X1) / @obs(x1)
?

Batbold
Posts: 9
Joined: Mon Jul 21, 2014 1:33 am

Re: how to write percentile rank code

Postby Batbold » Mon Jul 21, 2014 7:17 pm

thank you very much

banhbengconuong
Posts: 15
Joined: Mon Apr 25, 2011 8:31 pm

Re: how to write percentile rank code

Postby banhbengconuong » Sun Aug 03, 2014 9:56 am

Code: Select all

series perranks = @ranks(X1) / @obs(x1)
?
thanks Gareth, It is helpful. Btw, is there a short way to know a specific number (say the mean) is at which percentile? thank you

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

Re: how to write percentile rank code

Postby EViews Gareth » Sun Aug 03, 2014 1:54 pm

No


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests