-----------------------------------------------------------------------------------
name: <unnamed>
log: C:\Documents and Settings\Michael Rosenfeld\My Documents\newer web pag
> es\soc_meth_proj3\2010_logs\section_two.log
log type: text
opened on: 2 Feb 2010, 12:15:40
. use "C:\Documents and Settings\Michael Rosenfeld\Desktop\cps_mar_2000_new.dta", clear
. table vetlast, contents(freq mean age)
------------------------------------------------------
Veteran's |
most recent |
period of |
service | Freq. mean(age)
--------------+---------------------------------------
NIU | 30,904 7.5073127746582031
No service | 91,149 41.703880310058594
World War II | 2,428 77.236412048339844
Korean War | 1,716 67.861885070800781
Vietnam Era | 3,683 52.601955413818359
Other service | 3,830 45.138904571533203
------------------------------------------------------
. table vetlast, contents(freq p25 age mean age p75 age)
*In answer to how we should calculate the range of ages for each veteran status
------------------------------------------------------------------------
Veteran's |
most recent |
period of |
service | Freq. p25(age) mean(age)
--------------+---------------------------------------------------------
NIU | 30,904 4 7.5073127746582031
No service | 91,149 28 41.703880310058594
World War II | 2,428 74 77.236412048339844
Korean War | 1,716 66 67.861885070800781
Vietnam Era | 3,683 49 52.601955413818359
Other service | 3,830 34 45.138904571533203
------------------------------------------------------------------------
----------------------------------
Veteran's |
most recent |
period of |
service | p75(age)
--------------+-------------------
NIU | 11
No service | 53
World War II | 80
Korean War | 70
Vietnam Era | 55
Other service | 59
----------------------------------
. 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
. *So, to answer the question about age range for HW1, any reasonable way you figured the age range for each war is OK.
. *And we see, of course, that the great majority of veterans are men.
. codebook vetlast
-----------------------------------------------------------------------------------
vetlast Veteran's most recent period of service
-----------------------------------------------------------------------------------
type: numeric (byte)
label: vetlastlbl
range: [0,9] units: 1
unique values: 6 missing .: 0/133710
tabulation: Freq. Numeric Label
30904 0 NIU
91149 1 No service
2428 4 World War II
1716 6 Korean War
3683 8 Vietnam Era
3830 9 Other service
. *codebook is a handy command for seeing what the numeric values and the corresponding labels are, just make sure you use the option to see all the different levels. Try help codebook to see the syntax.
. exit, clear