diff --git a/ONS-UK-EFS-time-series-extract.do b/ONS-UK-EFS-time-series-extract.do index 1d7f324635374ddcf12b18e35f1c9973748028cd..555f80973f4b8c2a201934d4b02c66a530430f4a 100755 --- a/ONS-UK-EFS-time-series-extract.do +++ b/ONS-UK-EFS-time-series-extract.do @@ -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