Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down at the end of May, 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: calculating proportions |

Date |
Mon, 20 Feb 2012 23:47:13 +0000 |

Hello Oliver, Here is as far as I got: table income sex, c(freq) replace rename table1 freq bysort sex: egen totrefsex=total(freq) gen populincprop = (freq*100)/totrefsex

Ekaterina On 20/02/2012 12:11, Oliver Jones wrote:

Hello Ekaterina, it would be helpful if you provide the code you have written. Kind regards Oliver Am 20.02.2012 12:49, schrieb Ekaterina Hertog:Dear all, 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. Any help would be appreciated, Ekaterina * * 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/

* * 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: calculating proportions***From:*Oliver Jones <ojones@wiwi.uni-bielefeld.de>

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

**Re: st: calculating proportions***From:*Oliver Jones <ojones@wiwi.uni-bielefeld.de>

- Prev by Date:
**Re: st: RE: calculating proportions** - Next by Date:
**Re: st: RE: calculating proportions** - Previous by thread:
**Re: st: calculating proportions** - Next by thread:
**Re: st: calculating proportions** - Index(es):