looping through series error

For questions regarding programming in the EViews programming language.

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

mivan
Posts: 1
Joined: Thu Jun 13, 2019 2:03 am

looping through series error

Postby mivan » Fri Jun 14, 2019 3:52 am

Hey

I have 152 series F1,F2..F152 and 152 series L1..L152. I want to create a new series MR= (L-F)/F for the 152 series.

I have the following code which returns a syntax error.

for !i =1 to 152
series mr{!i} =((L{!i}-F{!i}/F{!i})
next

Could you please help me?

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

Re: looping through series error

Postby EViews Gareth » Fri Jun 14, 2019 5:37 am

You’re missing a close parenthesis


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests