Page 1 of 1

multiple estimation

Posted: Fri Feb 20, 2015 5:35 am
by Amorimneto
Hello, i trying to run all the possible regressions, for this i run the code:

Code: Select all

for !i=1 to xi.@count-1 %iname = xi.@seriesname(!i) for !j=!i+1 to xi.@count %jname = xi.@seriesname(!j) for !f=1 to xf.@count %fname = xf.@seriesname(!f) equation eq{%fname }{%jname}{%iname}.ls {%fname } c {%jname} {%iname} next next next
But im having a problem with the name of regression, when the name repeat and the program crush.
anyone can help me with this

Best regards
CA

Re: multiple estimation

Posted: Fri Feb 20, 2015 6:37 am
by EViews Gareth
There's nothing inherently wrong with that code. This example works just fine:

Code: Select all

create u 100 group xi for !i=1 to 5 series xi_!i=nrnd xi.add xi_!i next group xf for !i=1 to 3 series xf_!i=nrnd xf.add xf_!i next for !i=1 to xi.@count-1 %iname = xi.@seriesname(!i) for !j=!i+1 to xi.@count %jname = xi.@seriesname(!j) for !f=1 to xf.@count %fname = xf.@seriesname(!f) equation eq{%fname}{%jname}{%iname}.ls {%fname } c {%jname} {%iname} next next next