correct string form for running regression
Posted: Fri Feb 06, 2009 8:39 am
Hello...ive been stuck on this for ages it seems...
I have 24 regression estimates for a variable "d". (one for each hour of the day). I have string variables for each estimate:
%est_1 = "d c dd^5 dd^6 dd^7 dd^9 dd^12"
%est_2 = "d te dd^2 dd^7"
%est_3 = "d c te te^2 dd^5 dd^6" ...etc etc
the below regression works for hour 1.
%estimate = %est_1
myequation.ls {%estimate}
but I want be able to choose the hour like so:
%hour = "1"
%estimate = "est_" + %hour
myequation.ls {%estimate}
this gives me an error message. "est_1 is not defined in "DO_myEquation.ls est_1"
Can you please help me solve this problem?
Kind Regards
Minson
I have 24 regression estimates for a variable "d". (one for each hour of the day). I have string variables for each estimate:
%est_1 = "d c dd^5 dd^6 dd^7 dd^9 dd^12"
%est_2 = "d te dd^2 dd^7"
%est_3 = "d c te te^2 dd^5 dd^6" ...etc etc
the below regression works for hour 1.
%estimate = %est_1
myequation.ls {%estimate}
but I want be able to choose the hour like so:
%hour = "1"
%estimate = "est_" + %hour
myequation.ls {%estimate}
this gives me an error message. "est_1 is not defined in "DO_myEquation.ls est_1"
Can you please help me solve this problem?
Kind Regards
Minson