Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LCFS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Anderson
LCFS
Commits
666b4335
Commit
666b4335
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ONS-UK-EFS-time-series-extract.do
+6
-3
6 additions, 3 deletions
ONS-UK-EFS-time-series-extract.do
with
6 additions
and
3 deletions
ONS-UK-EFS-time-series-extract.do
+
6
−
3
View file @
666b4335
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment