Dear Nancy,
It would be a good idea to visit the website below which could provide clues to solving your problem:
http://www.ats.ucla.edu/stat/stata/faq/quantreg.htm
Regards


On Thu, Sep 4, 2014 at 4:39 PM, Nancy Achieng Odhiambo <[log in to unmask]> wrote:
Dear all,
I am trying to compare the performance of organisations.
I have already used the DEA (Data envelopment analysis in STATA) to identify the performance scores of the organisations.

I would like to use quantile regression to subdivide this scores in different levels (0.5, 0.25, 0.50, 0.75 and 0.95) with performance scores as the response variable.

Without using this code in STATA.

gen quartile=.

                                               

 levels dmu, local(levels)

foreach k of local levels{

centile eff1, centile(5 25 50 75 95)

replace quartile=1 if eff1<=r(c_1) & dmu==`k'

replace quartile=2 if eff1>r(c_1) & eff1<=r(c_2)  & dmu==`k'

replace quartile=3 if eff1>r(c_2) & eff1<=r(c_3)  & dmu==`k'

replace quartile=4 if eff1>r(c_3)  & eff1<=r(c_4) & dmu==`k'

replace quantile=5 if eff1>r(c_4) & dmu==`k'


Nb. eff1 is the performance score obtained after running the DEA model.
 dmu is the symbol have used to identify the organisations I would like to compare their prices.




Regards,
Nancy.


You may leave the list at any time by sending the command

SIGNOFF allstat

to [log in to unmask], leaving the subject line blank.




--
H.E. Misiri
Senior Lecturer in Biostats
MSc(Belgium) in Biostatistics,BSc(Malawi) Mathematics and Statistics

Cell:                    +265-(0)212-22-98-05
                          +265-(0)-111-575-737

Foreign cell:               

College of Medicine
Community Health
Private Bag 360
Blantyre3.
Malawi.
=============================================================

Motto:"God made foolish the wisdom of this world."

Favourite Quotes:
" I'm not trying to support my ignorance now by trying to say we don't need
education.
That might have its place. But education without salvation has no anchor.
It's all sails and no anchor"- from  Perseverance by William Marrion Branham

"Did not Jesus say that the children of this world are wiser than the
children of the Kingdom?"








You may leave the list at any time by sending the command

SIGNOFF allstat

to [log in to unmask], leaving the subject line blank.