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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Anderson
LCFS
Commits
e0fef6d9
Commit
e0fef6d9
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
small amendments to variables kept
parent
15d12e2f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ONS-UK-EFS-time-series-extract.do
+10
-6
10 additions, 6 deletions
ONS-UK-EFS-time-series-extract.do
with
10 additions
and
6 deletions
ONS-UK-EFS-time-series-extract.do
+
10
−
6
View file @
e0fef6d9
...
@@ -68,7 +68,7 @@ local years "2001-2012" // just a label
...
@@ -68,7 +68,7 @@ local years "2001-2012" // just a label
local
all_years
"2001-2002 2002-2003 2003-2004 2004-2005 2005-2006 2006 2007 2008 2009 2010 2011 2012"
// years to process local do_years = "2001-2002 2002-2003 2003-2004 2004-2005 2005-2006 2006 2007 2008 2009 2010 2011 2012"
local
all_years
"2001-2002 2002-2003 2003-2004 2004-2005 2005-2006 2006 2007 2008 2009 2010 2011 2012"
// years to process local do_years = "2001-2002 2002-2003 2003-2004 2004-2005 2005-2006 2006 2007 2008 2009 2010 2011 2012"
* set to 1 to refresh each yearly extract you listed in do_years
* set to 1 to refresh each yearly extract you listed in do_years
local
do_extracts
"1"
local
do_extracts
0
* drop the first survey for the merge as it is loaded first
* drop the first survey for the merge as it is loaded first
local
mergeyears
=
"2002-2003 2003-2004 2004-2005 2005-2006 2006 2007 2008 2009 2010 2011 2012"
local
mergeyears
=
"2002-2003 2003-2004 2004-2005 2005-2006 2006 2007 2008 2009 2010 2011 2012"
...
@@ -434,11 +434,6 @@ drop if survey_year == "2006" & ba_month == 3
...
@@ -434,11 +434,6 @@ drop if survey_year == "2006" & ba_month == 3
* check
* check
tab
ba_calyear
ba_month
tab
ba_calyear
ba_month
di
"Compressing"
qui
:
compress
aorder
gen
caseno
=
case
gen
caseno
=
case
...
@@ -454,6 +449,15 @@ else
...
@@ -454,6 +449,15 @@ else
* to test
* to test
tabstat
c_ncars
c_nchild
c_npersons
c_nearners
c_nrooms
,
by
(
ba_sampyear
)
tabstat
c_ncars
c_nchild
c_npersons
c_nearners
c_nrooms
,
by
(
ba_sampyear
)
drop
_merge
*
a055
g
*
p
*
di
"*-> Compressing"
qui
:
compress
aorder
order
case
*
survey
*
save
"`outd'/EFS-`years'-extract-reduced-BA.dta"
,
replace
save
"`outd'/EFS-`years'-extract-reduced-BA.dta"
,
replace
di
"Job ended at $S_DATE"
di
"Job ended at $S_DATE"
...
...
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