From 9850ca49c24174e947e2bf36e698ded5ba633c03 Mon Sep 17 00:00:00 2001 From: Ben Anderson <dataknut@icloud.com> Date: Mon, 24 Aug 2015 18:13:49 +0100 Subject: [PATCH] amended xt (longitudinal) models removed yeart variable --- NEED/analyse-NEED-EULF-2014-electricity-consumption.do | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEED/analyse-NEED-EULF-2014-electricity-consumption.do b/NEED/analyse-NEED-EULF-2014-electricity-consumption.do index 8ec7093..1692045 100644 --- a/NEED/analyse-NEED-EULF-2014-electricity-consumption.do +++ b/NEED/analyse-NEED-EULF-2014-electricity-consumption.do @@ -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 } } -- GitLab