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

small amendments to variables kept

parent 15d12e2f
No related branches found
No related tags found
No related merge requests found
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment