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
9850ca49
Commit
9850ca49
authored
9 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
amended xt (longitudinal) models
removed yeart variable
parent
7dac12c9
No related branches found
Branches containing commit
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-electricity-consumption.do
+5
-5
5 additions, 5 deletions
NEED/analyse-NEED-EULF-2014-electricity-consumption.do
with
5 additions
and
5 deletions
NEED/analyse-NEED-EULF-2014-electricity-consumption.do
+
5
−
5
View file @
9850ca49
...
...
@@ -388,25 +388,25 @@ if `do_longit' {
gen
yeart
=
year
-
2005
regress
logEcons
logEconslag
i.
ba_region
i.
E7Flag2012
///
i.
MAIN_HEAT_FUEL
i.
PROP_AGE
i.
PROP_TYPE
i.
FLOOR_AREA_BAND
i.
EE_BAND
i.
LOFT_DEPTH
i.
WALL_CONS
///
yeart
ba_have_BOILER
ba_have_LI
ba_have_CWI
ba_have_BOILER
ba_have_LI
ba_have_CWI
est
store
lag_model
estout
lag_model
using
"$rpath/lag_model_logEcons_`version'.txt"
,
cells
(
"b se ci_u ci_l _star "
)
stats
(
r2
rmse
ll
N
,
fmt
(
%9.3f
%9.0g))
replace
di
"* xt regression model of change (use log Econs)"
xtreg
logEcons
i.
ba_region
i.
E7Flag2012
///
i.
MAIN_HEAT_FUEL
i.
PROP_AGE
i.
PROP_TYPE
i.
FLOOR_AREA_BAND
i.
EE_BAND
i.
LOFT_DEPTH
i.
WALL_CONS
///
yeart
ba_have_BOILER
ba_have_LI
ba_have_CWI
,
i
(
HH_ID
)
fe
ba_have_BOILER
ba_have_LI
ba_have_CWI
,
i
(
HH_ID
)
fe
est
store
xtr_fe_logEcons
estout
xtr_fe_logEcons
using
"$rpath/xtr_fe_logEcons_`version'.txt"
,
replace
estout
xtr_fe_logEcons
using
"$rpath/xtr_fe_logEcons_`version'.txt"
,
cells
(
"b se ci_u ci_l _star "
)
stats
(
r2_w
r2_b
r2_o
rmse
N
sigma_u
sigma_e
,
fmt
(
%9.3f
%9.0g))
replace
di
"* now including time constant variables"
xtreg
logEcons
i.
ba_region
i.
E7Flag2012
///
i.
MAIN_HEAT_FUEL
i.
PROP_AGE
i.
PROP_TYPE
i.
FLOOR_AREA_BAND
i.
EE_BAND
i.
LOFT_DEPTH
i.
WALL_CONS
///
yeart
ba_have_BOILER
ba_have_LI
ba_have_CWI
,
i
(
HH_ID
)
re
ba_have_BOILER
ba_have_LI
ba_have_CWI
,
i
(
HH_ID
)
re
est
store
xtr_re_logEcons
estout
xtr_re_logEcons
using
"$rpath/xtr_re_logEcons_`version'.txt"
,
replace
estout
xtr_re_logEcons
using
"$rpath/xtr_re_logEcons_`version'.txt"
,
cells
(
"b se ci_u ci_l _star "
)
stats
(
r2_w
r2_b
r2_o
rmse
N
sigma_u
sigma_e
,
fmt
(
%9.3f
%9.0g))
replace
}
}
...
...
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