Cross Sectional Percentile Ranking Across Time Series

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

telaxin
Posts: 3
Joined: Sat Apr 20, 2013 2:23 am

Cross Sectional Percentile Ranking Across Time Series

Postby telaxin » Mon Feb 10, 2014 6:41 am

Hi,

I was wondering whether it would be possible and how do I go about doing a percentile rank across various time series for the same date. Thanks!

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

Re: Cross Sectional Percentile Ranking Across Time Series

Postby EViews Gareth » Mon Feb 10, 2014 9:06 am

Could you define what you mean a little more explicitly?

telaxin
Posts: 3
Joined: Sat Apr 20, 2013 2:23 am

Re: Cross Sectional Percentile Ranking Across Time Series

Postby telaxin » Mon Feb 10, 2014 4:24 pm

For example:
TS1 TS2 TS3
1/1/2000 5 4 3


There are 3 time series TS1 TS2 and TS3. I want to do a percentile ranking row wise such that:

TS1 TS2 TS3
1/1/2000 100% 50% 0%

So I do a percentile ranking across rows across multiple timeseries

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

Re: Cross Sectional Percentile Ranking Across Time Series

Postby EViews Gareth » Mon Feb 10, 2014 4:53 pm

There isn't anything built in that will do that for you. All you can do is convert a group containing the series into a matrix object, pull off each row of the matrix one at a time into a vector object, use the @ranks function to get you the relative ranking of each row, then calculate the percentiles.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests