Hu, Y.
> i am tring to calculate the percentage rank for the 
> residuals of both male and female wage equations by using 
> the command: egen rank=rank(residuals), is that the correct 
> way to compute the ranks?
Please see the FAQ 
How can I calculate percentile ranks?
How can I calculate plotting positions?
http://www.stata.com/support/faqs/stat/pcrank.html
Nick 
[email protected] 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/