Page 1 of 1

Illegal or reserved name

Posted: Mon Mar 28, 2016 6:34 am
by Selebogo
Hi

When I try to run this program I get an error massage saying (@HQ is an illegal or reserved name in "HQIC_MATRIX_RSA(1,1) = @HQ")

!x = 2
matrix (!x,!x) hqic_matrix_rsa 'Hannan-Quinn criterion
for !p = 1 to !x
for !q = 1 to !x
%ar = ""
%ma = ""
for !u = 1 to !p
%ar = %ar + "ar(" + @str(!u)+ ")"
next
for !v = 1 to !q
%ma = %ma + "ma(" + @str(!v)+ ")"
next

equation ar_rsa_{!p}.ls rsouth_africa c {%ar}
equation ma_rsa_{!q}.ls rsouth_africa c {%ma}
hqic_matrix_rsa(!p,!q) = @hq
next
next

Re: Illegal or reserved name

Posted: Mon Mar 28, 2016 7:27 am
by EViews Gareth
You need to put equationname.@hq

Of course it isn't clear which equation you are trying to retrieve the HQ statistic from.

Re: Illegal or reserved name

Posted: Mon Mar 28, 2016 7:47 am
by Selebogo
Thank you very much!!

It works now

Appreciate the help