Skip to content
Snippets Groups Projects
Commit 666b4335 authored by Ben Anderson's avatar Ben Anderson
Browse files

fixed birth cohort coding to include those born pre 1910

parent 191aacca
No related branches found
No related tags found
No related merge requests found
......@@ -403,9 +403,12 @@ if `do_extracts' {
* year of birth
gen ba_birthyear = ba_sampyear - p396
* create a birth cohort variable
recode ba_birth (1910/1919=1) (1920/1929=2) (1930/1939=3) (1940/1949=4) (1950/1959=5) (1960/1969=6) (1970/1979=7) (1980/1989=8) (1990/1999=9) (2000/2009=10), gen(ba_birth_cohort)
lab def ba_birth_cohort 1 "1910-1919" 2 "1920-1929" 3 "1930-1939" 4 "1940-1949" 5 "1950-1959" 6 "1960-1969" 7 "1970-1979" 8 "1980-1989" 9 "1990-1999" 10 "2000-2009"
lab val ba_birth_cohort ba_birth_cohort
recode ba_birth (1900/1909=1 "1900-1909") (1910/1919=2 "1910-1919") (1920/1929=3 "1920-1929") ///
(1930/1939=4 "1930-1939") (1940/1949=5 "1940-1949") (1950/1959=6 "1950-1959") ///
(1960/1969=7 "1960-1969") (1970/1979=8 "1970-1979") (1980/1989=9 "1980-1989") ///
(1990/1999=10 "1990-1999") (2000/2009=11 "2000-2009"), ///
gen(ba_birth_cohort)
* tab ba_birth_cohort c_age, mi
***********************
* End of per-year processing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment