Commit 639cb0bd authored by Ben Anderson's avatar Ben Anderson
Browse files

fixed residual testing graphs

names were over-written
parent f9597617
...@@ -164,6 +164,9 @@ local pt104 "mid_terr" ...@@ -164,6 +164,9 @@ local pt104 "mid_terr"
local pt105 "bungalow" local pt105 "bungalow"
local pt106 "flat" local pt106 "flat"
* check for weirdness
su `generic_hvarsg'
* now loop over the energy types & run linear regression models * now loop over the energy types & run linear regression models
* NB - the rounding of the consumption values may lead to modelling problems * NB - the rounding of the consumption values may lead to modelling problems
...@@ -187,7 +190,7 @@ foreach v of local vars { ...@@ -187,7 +190,7 @@ foreach v of local vars {
di "Testing residuals against `v'" di "Testing residuals against `v'"
* based on http://www.ats.ucla.edu/stat/stata/webbooks/reg/chapter2/statareg2.htm * based on http://www.ats.ucla.edu/stat/stata/webbooks/reg/chapter2/statareg2.htm
* can't use factor variables in acprplot... * can't use factor variables in acprplot...
graph hbox `v'_r, over(`testv') name(rtest_`testv') graph hbox `v'_r, over(`testv') name(rtest_`v'_`testv')
graph export "`rpath'/graphs/rplot_`v'_`testv'-`version'.png", replace graph export "`rpath'/graphs/rplot_`v'_`testv'-`version'.png", replace
* possibly floor area - heteroskedasticity ? * possibly floor area - heteroskedasticity ?
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment