Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
DECC-data
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
DECC-data
Commits
5998ea78
Commit
5998ea78
authored
10 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
fixed long form loop switch
parent
d222dcc6
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
NEED/analyse-NEED-EULF-2014-descriptives.do
+7
-7
7 additions, 7 deletions
NEED/analyse-NEED-EULF-2014-descriptives.do
with
7 additions
and
7 deletions
NEED/analyse-NEED-EULF-2014-descriptives.do
+
7
−
7
View file @
5998ea78
...
@@ -28,10 +28,10 @@ local rpath "`proot'/results/NEED"
...
@@ -28,10 +28,10 @@ local rpath "`proot'/results/NEED"
local
version
"v1.1"
local
version
"v1.1"
* quick tests for 2012
* quick tests for 2012
local
do_2012_desc
=
1
local
do_2012_desc
=
0
* tests for all years using long file - takes a while
* tests for all years using long file - takes a while
local
do_long_dec
=
1
local
do_long_de
s
c
=
1
set
more
off
set
more
off
...
@@ -50,10 +50,10 @@ if `do_2012_desc' {
...
@@ -50,10 +50,10 @@ if `do_2012_desc' {
local
tvars
"EE_BAND FLOOR_AREA_BAND PROP_AGE"
local
tvars
"EE_BAND FLOOR_AREA_BAND PROP_AGE"
foreach
v
of
local
vars
{
foreach
v
of
local
vars
{
foreach
tv
of
local
tvars
{
foreach
tv
of
local
tvars
{
histogram
`v'
,
by
(
`tv'
)
name
(
h
isto
_
`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
export
"`rpath'/NEED-EULF-2014-histo_`v'_by_`tv'_`sample'.png"
,
replace
graph
box
`v'
,
over
(
`tv'
)
name
(
b
ox
_
`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
graph
export
"`rpath'/NEED-EULF-2014-box_`v'_by_`tv'_`sample'.png"
,
replace
}
}
}
}
...
@@ -66,10 +66,10 @@ if `do_long_desc' {
...
@@ -66,10 +66,10 @@ if `do_long_desc' {
foreach
s
of
local
samples
{
foreach
s
of
local
samples
{
di
"************************"
di
"************************"
di
"* Using `s'% sample"
di
"* Using `s'% sample"
use
"`dpath'/need_eul_may2014_
l
on
gfile
_`s'.dta"
,
clear
use
"`dpath'/need_eul_may2014_
c
on
sumptionfile_long
_`s'
pc
.dta"
,
clear
* set as panel
* set as panel
in case it wasn't
xtset
HH_ID
year
,
delta
(
1
year
)
xtset
HH_ID
year
xtdescribe
xtdescribe
...
...
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