Page 1 of 1

bug? evaluation of series expression

Posted: Sat May 21, 2011 7:21 pm
by maxchen
EV version: EViews7Patch_051111.exe

Code: Select all

wfcreate u 4 genr x = @obsid genr y = 5 'c(1) = @sum(x*y) 'error genr z = x*y c(2) = @sum(z) 'work
the 4th line error: "size do not match in matrix function", but it is a series expression.

Re: bug? evaluation of series expression

Posted: Mon May 23, 2011 8:03 am
by EViews Gareth
That isn't a bug per se, rather it is a quirk of the EViews parsing language. When you're assigning into scalar (or other matrix objects), you can often not perform the same level of series algebra on the right hand side as you can when you're assigning into a series. This often means you need to create a temporary series, such as the one you did. Yes, this can be irritating.