-----------------------------------------------------------------------------------
log: C:\AAA Miker Files\newer web pages\soc_meth_proj3\section2_2009.log
log type: text
opened on: 3 Feb 2009, 15:24:40
. set mem 200m
Current memory allocation
current memory usage
settable value description (1M = 1024k)
--------------------------------------------------------------------
set maxvar 5000 max. variables allowed 1.909M
set memory 200M max. data space 200.000M
set matsize 400 max. RHS vars in models 1.254M
-----------
203.163M
. use "C:\AAA Miker Files\newer web pages\soc_meth_proj3\cps_mar_2000_new.dta", clear
. tabulate vetstat
Veteran |
status | Freq. Percent Cum.
------------+-----------------------------------
NIU | 30,904 23.11 23.11
No service | 91,149 68.17 91.28
Yes | 11,657 8.72 100.00
------------+-----------------------------------
Total | 133,710 100.00
. tabulate vetlast
Veteran's most recent |
period of service | Freq. Percent Cum.
---------------------------+-----------------------------------
NIU | 30,904 23.11 23.11
No service | 91,149 68.17 91.28
World War II | 2,428 1.82 93.10
Korean War | 1,716 1.28 94.38
Vietnam Era | 3,683 2.75 97.14
Other service | 3,830 2.86 100.00
---------------------------+-----------------------------------
Total | 133,710 100.00
. tabulate vetlast sex
Veteran's most recent | Sex
period of service | Male Female | Total
----------------------+----------------------+----------
NIU | 15,810 15,094 | 30,904
No service | 37,926 53,223 | 91,149
World War II | 2,339 89 | 2,428
Korean War | 1,681 35 | 1,716
Vietnam Era | 3,584 99 | 3,683
Other service | 3,451 379 | 3,830
----------------------+----------------------+----------
Total | 64,791 68,919 | 133,710
. tabulate vetlast sex, row
+----------------+
| Key |
|----------------|
| frequency |
| row percentage |
+----------------+
Veteran's most recent | Sex
period of service | Male Female | Total
----------------------+----------------------+----------
NIU | 15,810 15,094 | 30,904
| 51.16 48.84 | 100.00
----------------------+----------------------+----------
No service | 37,926 53,223 | 91,149
| 41.61 58.39 | 100.00
----------------------+----------------------+----------
World War II | 2,339 89 | 2,428
| 96.33 3.67 | 100.00
----------------------+----------------------+----------
Korean War | 1,681 35 | 1,716
| 97.96 2.04 | 100.00
----------------------+----------------------+----------
Vietnam Era | 3,584 99 | 3,683
| 97.31 2.69 | 100.00
----------------------+----------------------+----------
Other service | 3,451 379 | 3,830
| 90.10 9.90 | 100.00
----------------------+----------------------+----------
Total | 64,791 68,919 | 133,710
| 48.46 51.54 | 100.00
. table vetlast if sex==1, contents(mean age p25 age p75 age)
--------------------------------------------------------------------------
Veteran's |
most recent |
period of |
service | mean(age) p25(age) p75(age)
--------------+-----------------------------------------------------------
NIU | 7.7223911285400391 4 11
No service | 38.128620147705078 25 48
World War II | 77.200088500976563 74 80
Korean War | 67.854255676269531 66 70
Vietnam Era | 52.687778472900391 49 55
Other service | 45.978267669677734 35 60
--------------------------------------------------------------------------
. table vetlast if sex==1, contents(mean age p25 age p75 age min age max age)
------------------------------------------------------------------------
Veteran's |
most recent |
period of |
service | mean(age) p25(age) p75(age)
--------------+---------------------------------------------------------
NIU | 7.7223911285400391 4 11
No service | 38.128620147705078 25 48
World War II | 77.200088500976563 74 80
Korean War | 67.854255676269531 66 70
Vietnam Era | 52.687778472900391 49 55
Other service | 45.978267669677734 35 60
------------------------------------------------------------------------
-----------------------------------------------------
Veteran's |
most recent |
period of |
service | min(age) max(age)
--------------+--------------------------------------
NIU | 0 58
No service | 15 90
World War II | 69 90
Korean War | 61 90
Vietnam Era | 41 78
Other service | 18 90
-----------------------------------------------------
. tabulate vetlast, nolab
Veteran's |
most recent |
period of |
service | Freq. Percent Cum.
------------+-----------------------------------
0 | 30,904 23.11 23.11
1 | 91,149 68.17 91.28
4 | 2,428 1.82 93.10
6 | 1,716 1.28 94.38
8 | 3,683 2.75 97.14
9 | 3,830 2.86 100.00
------------+-----------------------------------
Total | 133,710 100.00
. histogram age if vetlast==4& age==1
*This graph didn’t work. Had no observations because there are no 1 year old WWII vets...
. histogram age if vetlast==4& sex==1
(bin=33, start=69, width=.63636364)
. *This was to create a histogram of the age distribution of male WWII vets...
. table sex citizen, contents(mean yrsed freq)
----------------------------------------------------------------------------
| Citizenship status
Sex | NIU Born abroad of Ameri Naturalized citizen
----------+-----------------------------------------------------------------
Male | 13.04314 13.07512 12.4701
| 56,615 493 2,523
|
Female | 12.99607 13.21875 12.13659
| 60,695 483 2,825
----------------------------------------------------------------------------
--------------------------------
| Citizenship status
Sex | Not a citizen
----------+---------------------
Male | 10.72414
| 5,160
|
Female | 10.54676
| 4,916
--------------------------------
. table sex citizen, contents(mean yrsed freq) row col
----------------------------------------------------------------------------
| Citizenship status
Sex | NIU Born abroad of Ameri Naturalized citizen
----------+-----------------------------------------------------------------
Male | 13.04314 13.07512 12.4701
| 56,615 493 2,523
|
Female | 12.99607 13.21875 12.13659
| 60,695 483 2,825
|
Total | 13.01842 13.14494 12.29336
| 117,310 976 5,348
----------------------------------------------------------------------------
------------------------------------------------------
| Citizenship status
Sex | Not a citizen Total
----------+-------------------------------------------
Male | 10.72414 12.79632
| 5,160 64,791
|
Female | 10.54676 12.75218
| 4,916 68,919
|
Total | 10.63764 12.77328
| 10,076 133,710
------------------------------------------------------
. graph box incwage if age>24 & age<65, over(region)
value label incwagelbl not found
r(111);
*had to delete the silly value label for incwage.
. label val incwage .
. graph box incwage if age>24 & age<65, over(region)
. graph hbox incwage if age>24 & age<65, over(region)
graph hbox incwage if age>24 & age<65 & incwage <150000, over(region)
. *We were playing with box plots. hbox was easier to read. We truncated the income distribution to make the boxes bigger and to shring
. exit, clear