Running VEC - string and scalar recognition problems
Posted: Fri Jul 19, 2013 12:36 pm
I am trying to run a VEC regression in a program, but it doesn't recognize the options trend and n coming from a chosen string and scalar, respectively. I am using the specification var_name.ec(trend,n) lags_pair endog_list [@ exog_list] in the folowwing form:
var eval1.ec(%b,datostrings(1,3)) 1 2 log(a0_sa) log(a1_sa) log(a2_sa) ' log(a"@str(datostrings(1,8))"_sa)
where %b is the string variable coming from the following criteria:
if datostrings(1,2)=1 then %b="a"
endif
if datostrings(1,2)=2 then %b="b"
endif
if datostrings(1,2)=3 then %b="c"
endif
if datostrings(1,2)=4 then %b="d"
endif
if datostrings(1,2)=5 then %b="e"
endif
and where datostrings(1,3) is an specif scalar in the matrix datostrings I am using.
I believe this specification is correct but when I run the program the VEC runned by eviews uses trend=c and n=1 by default.
When I run the programm using "Version 4 compatible variable substitution and program boolean comparison" it solves the problem for the option trend but not for n (numbers of contaigrating)
var eval1.ec(%b,datostrings(1,3)) 1 2 log(a0_sa) log(a1_sa) log(a2_sa) ' log(a"@str(datostrings(1,8))"_sa)
where %b is the string variable coming from the following criteria:
if datostrings(1,2)=1 then %b="a"
endif
if datostrings(1,2)=2 then %b="b"
endif
if datostrings(1,2)=3 then %b="c"
endif
if datostrings(1,2)=4 then %b="d"
endif
if datostrings(1,2)=5 then %b="e"
endif
and where datostrings(1,3) is an specif scalar in the matrix datostrings I am using.
I believe this specification is correct but when I run the program the VEC runned by eviews uses trend=c and n=1 by default.
When I run the programm using "Version 4 compatible variable substitution and program boolean comparison" it solves the problem for the option trend but not for n (numbers of contaigrating)