Simultaneous FOR LOOP

For questions regarding programming in the EViews programming language.

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

cristina63
Posts: 1
Joined: Wed Jan 14, 2009 1:07 pm

Simultaneous FOR LOOP

Postby cristina63 » Wed Jan 14, 2009 1:16 pm

Hi I am new to Eviews and I would like to generate series using two control variables that need to be advanced at the same time. I have two pools comm and compr

for !i=1 to comm.@ncross %cm=comm.@idname(!i) !j=1 to compr.@ncross %cmpr=compr.@idname(!j)

genr {%cm}pch = (@elem({%cmpr},"2008m12")/ @elem({%cmpr},"2007m12")-1)*100

next


The syntax is wrong and gives me an error message

Thanks

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest