---------------------------------------------------------------------------------

name:  <unnamed>

log:  C:\Documents and Settings\Michael Rosenfeld\My Documents\newer web pages\soc_meth_proj3\2010_logs\section_three.log

log type:  text

opened on:   9 Feb 2010, 12:18:13

. use "C:\Documents and Settings\Michael Rosenfeld\Desktop\cps_mar_2000_new.dta",clear

. * A student asks how to get the median. The answer is you can use the table command, or the summarize command with detail. Note that the median is the same as the 50th percentile.

. table sex, contents(mean inctot median inctot p50 inctot)

----------------------------------------------------

Sex | mean(inctot)   med(inctot)   med(inctot)

----------+-----------------------------------------

Male |  34066.95147         25000         25000

Female |  18631.71667         12468         12468

----------------------------------------------------

. *Median  and p50 are the same.

. sort sex

. by sex: summarize inctot, detail

---------------------------------------------------------------------------------

-> sex = Male

Total personal income

-------------------------------------------------------------

Percentiles      Smallest

1%            0         -24998

5%            0         -10653

10%         1406          -9999       Obs               49353

25%        10722          -9999       Sum of Wgt.       49353

50%        25000                      Mean           34066.95

Largest       Std. Dev.      38476.77

75%        44421         419304

90%        72000         419351       Variance       1.48e+09

95%        98958         424770       Skewness       3.212967

99%       229916         425510       Kurtosis       18.59227

---------------------------------------------------------------------------------

-> sex = Female

Total personal income

-------------------------------------------------------------

Percentiles      Smallest

1%            0         -18582

5%            0         -13300

10%            0         -12949       Obs               53873

25%         4400         -12925       Sum of Wgt.       53873

50%        12468                      Mean           18631.72

Largest       Std. Dev.      22349.34

75%        25888         333564

90%        42500         345179       Variance       4.99e+08

95%        56990         347137       Skewness       3.665118

99%       100012         385068       Kurtosis       30.04411

. log close

name:  <unnamed>

log:  C:\Documents and Settings\Michael Rosenfeld\My Documents\newer web pages\soc_meth_proj3\2010_logs\section_three.log

log type:  text

closed on:   9 Feb 2010, 13:55:19

-----------------------------------------------------------------------------------