Illegal or reserved name

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Selebogo
Posts: 4
Joined: Mon Mar 28, 2016 6:22 am

Illegal or reserved name

Postby Selebogo » Mon Mar 28, 2016 6:34 am

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

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Illegal or reserved name

Postby EViews Gareth » Mon Mar 28, 2016 7:27 am

You need to put equationname.@hq

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

Selebogo
Posts: 4
Joined: Mon Mar 28, 2016 6:22 am

Re: Illegal or reserved name

Postby Selebogo » Mon Mar 28, 2016 7:47 am

Thank you very much!!

It works now

Appreciate the help


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests