* Ben Anderson, Energy & Climate Change, Faculty of Engineering & Environment, University of Southampton
* b.anderson@soton.ac.uk
* (c) University of Southampton
* Unless there is a different license file in the folder in which this script is found, the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) license applies
* http://creativecommons.org/licenses/by-nc/4.0/
clearall
capturenoisilylogclose
* written for Mac OSX - remember to change filesystem delimiter for other platforms
* log the consumption as it's very skewed -> becomes semi-normal & OK for linear regression
* Gcons = gas
* Econs = Electricity
* Presumably those without gas use oil or electricity for heating - we don't have oil so we should probably restrict analysis to gas-using hosueholds only to avoid this confounding factor?
* check what's valid
tabGcons2012ValidEcons2012Valid,mi// what does G,L,M mean? Presumably O = off gas?
* output all the results - that's a lot of t tests!
* we could put them all out in one file but it would be really hard to find the ones you want!
estoutrlog_Gcons2012using"`rpath'/NEED-EULF-2014-log-gas-model-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Gcons2012q*using"`rpath'/NEED-EULF-2014-log-gas-models-quintiles-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Gcons2012_*using"`rpath'/NEED-EULF-2014-log-gas-models-by-property-type-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Econs2012using"`rpath'/NEED-EULF-2014-log-elec-model-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Econs2012q*using"`rpath'/NEED-EULF-2014-log-elec-models-quintiles-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Econs2012_*using"`rpath'/NEED-EULF-2014-log-elec-models-by-property-type-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Allcons2012using"`rpath'/NEED-EULF-2014-log-energy-model-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Allcons2012q*using"`rpath'/NEED-EULF-2014-log-energy-models-quintiles-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)
estoutrlog_Allcons2012_*using"`rpath'/NEED-EULF-2014-log-energy-models-by-property-type-`version'-$S_DATE.txt",replacecells("b se p _star")stats(r2r2_aNll)