Calculating and assigning percentiles as values
Posted: Wed Sep 04, 2013 1:19 pm
I'm working on a program where I have a number of countries and a number of variables. For some variables for some countries the data is missing or unreported.
What I'd like to do (and am not sure how to program in Eviews) would be to include in the program coding is language that does the following :
-For countries with data available for variable X calculate the value of X for the 10th, 40th, 60th and 90th percentile
-Then based on a previously developed category scale, for countries where data for variable X is missing, assign one of the percentile variables in it place.
For example:
Zim = Category 1 (so want to assign the 10th percentile) value for variable X calculated from all other countries who have data present for variable X.
Thanks for any help on this.
What I'd like to do (and am not sure how to program in Eviews) would be to include in the program coding is language that does the following :
-For countries with data available for variable X calculate the value of X for the 10th, 40th, 60th and 90th percentile
-Then based on a previously developed category scale, for countries where data for variable X is missing, assign one of the percentile variables in it place.
For example:
Zim = Category 1 (so want to assign the 10th percentile) value for variable X calculated from all other countries who have data present for variable X.
Thanks for any help on this.