Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Ekaterina Hertog <ekaterina.hertog@sociology.ox.ac.uk> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: RE: calculating proportions |

Date |
Mon, 20 Feb 2012 23:29:53 +0000 |

Hi Nick,

I used the following code: relrank income if sex==1, ref(income if sex==2) g(rank)

Ekaterina On 20/02/2012 12:19, Nick Cox wrote:

Look at these modules on SSC: relrank (Ben Jann) invcdf (Ben Jann) ppplot (Nick Cox) Nick n.j.cox@durham.ac.uk Ekaterina Hertog I use Stata 12. I have a dataset which includes id number, sex and income information for every individual. I would like to construct for every man 3 variables: what is the proportion of the total female population that earns as much as he does, that earns less than he does, and that earns more than he does. I have tried creating a table which gives me frequencies of individuals by sex by income, but am getting stuck at that stage. * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: RE: calculating proportions***From:*Nick Cox <njcoxstata@gmail.com>

**References**:**st: calculating proportions***From:*Ekaterina Hertog <ekaterina.hertog@sociology.ox.ac.uk>

**st: RE: calculating proportions***From:*Nick Cox <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: RE: ivreg2 weak-id statistic and quadratic terms** - Next by Date:
**Re: st: calculating proportions** - Previous by thread:
**st: RE: calculating proportions** - Next by thread:
**Re: st: RE: calculating proportions** - Index(es):