* Now use the pre-processed long form file which contains all years of consumption data but not the constant values (housing charactersitics etc) which are in the xwave file
* Now use the pre-processed long form file which contains all years of consumption data but not the constant values (housing charactersitics etc) which are in the xwave file
* do this for each random sample of differening sizes as a check
* do this for each random sample of differening sizes as a check
localsamples"10 20 30 40 50 100"
* local samples "10 20 30 40 50 100"
localsamples"50"
foreachsoflocalsamples{
foreachsoflocalsamples{
di"************************"
di"************************"
di"* Using `s'% sample"
di"* Using `s'% sample"
...
@@ -93,6 +94,9 @@ if `do_long_desc' {
...
@@ -93,6 +94,9 @@ if `do_long_desc' {
* distributions for valid obs
* distributions for valid obs
localvars"Econs Gcons"
localvars"Econs Gcons"
foreachvoflocalvars{
foreachvoflocalvars{
di"***************"
di"* Testing `v' for `s'% sample"
* overall
* overall
xtsum`v'if`v'Valid=="V"
xtsum`v'if`v'Valid=="V"
* test values for valid - check for valid 0s for example. This only happens for gas where:
* test values for valid - check for valid 0s for example. This only happens for gas where:
...
@@ -101,7 +105,7 @@ if `do_long_desc' {
...
@@ -101,7 +105,7 @@ if `do_long_desc' {
* elec always rounded to nearest 50 so min shoudl always be 100
* elec always rounded to nearest 50 so min shoudl always be 100