Page 1 of 1

Syntax error

Posted: Fri Nov 01, 2019 6:58 am
by miorinnovo
I'm getting a syntax error when I try to create a moving average in a for loop like this:

Code: Select all

for !i=1 to mygroupgr.@count %sn = mygroupgr.@seriesname(!i) series {%sn}ma = @movav({%sn},8)) next
the same thing works with other functions like this though:

Code: Select all

for !i=1 to mygroup.@count %sn = mygroup.@seriesname(!i) series {%sn}gr = @pca({%sn}) next
So I assume it has to do with the 8 option I'm adding to the moving average function. Any ideas on how to resolve this?

thanks

Re: Syntax error

Posted: Fri Nov 01, 2019 7:41 am
by EViews Gareth
You have two close parens

Re: Syntax error

Posted: Fri Nov 01, 2019 7:44 am
by miorinnovo
ugh.

thanks