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

fixed long form loop switch

parent d222dcc6
No related branches found
No related tags found
No related merge requests found
......@@ -28,10 +28,10 @@ local rpath "`proot'/results/NEED"
local version "v1.1"
* quick tests for 2012
local do_2012_desc = 1
local do_2012_desc = 0
* tests for all years using long file - takes a while
local do_long_dec = 1
local do_long_desc = 1
set more off
......@@ -50,10 +50,10 @@ if `do_2012_desc' {
local tvars "EE_BAND FLOOR_AREA_BAND PROP_AGE"
foreach v of local vars {
foreach tv of local tvars {
histogram `v' , by(`tv') name(histo_`tv'_`v'_`sample')
histogram `v' , by(`tv') name(h_`tv'_`v'_`sample')
graph export "`rpath'/NEED-EULF-2014-histo_`v'_by_`tv'_`sample'.png", replace
graph box `v', over(`tv') name(box_`tv'_`v')
graph box `v', over(`tv') name(b_`tv'_`v'_`sample')
graph export "`rpath'/NEED-EULF-2014-box_`v'_by_`tv'_`sample'.png", replace
}
}
......@@ -66,10 +66,10 @@ if `do_long_desc' {
foreach s of local samples {
di "************************"
di "* Using `s'% sample"
use "`dpath'/need_eul_may2014_longfile_`s'.dta", clear
use "`dpath'/need_eul_may2014_consumptionfile_long_`s'pc.dta", clear
* set as panel
xtset HH_ID year, delta(1 year)
* set as panel in case it wasn't
xtset HH_ID year
xtdescribe
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment