## Percentile of the Mean

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

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

Avwokeni
Posts: 2
Joined: Wed Jan 24, 2018 10:01 am

### Percentile of the Mean

The percentile of the median is 50. This means that if the median of a
distribution were 66, then 50 percent of the observations are 66 and below.
However, the percentile of the mean value is not readily known. To ask,
suppose the mean of a distribution were 74, what is the equivalent
percentile? Could someone help with the syntax to calculate the percentile
of the mean?

Dr Avwokeni

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

### Re: Percentile of the Mean

Obvious, if not slick, method is simply:

Code: Select all

`smpl if x<=@mean(x)scalar mypercentile = @obssmpl/@obsrange*100`

Avwokeni
Posts: 2
Joined: Wed Jan 24, 2018 10:01 am

### Re: Percentile of the Mean

It works, but not so obvious as you remarked. Many thanks