Page 1 of 1

Problem with @WCross

Posted: Tue May 05, 2015 7:07 am
by johansamuelsson
Hi

In the code below, %series and %series2 is not same. Check this out

Code: Select all

%series = "a1 a2 a3 a4 a5 a6" %series = @WCross(%series,")") %series = @WCross("@pc(",%series) @UiPrompt(%series) %series2 = "a1 a2 a3 a4 a5 a6" %series2 = @WCross("@pc(",%series2) %series2 = @WCross(%series2,")") @UiPrompt(%series2)
Should be the same? Regards Johan

Re: Problem with @WCross

Posted: Wed May 06, 2015 7:56 am
by EViews Gareth
Not really. All of the @w functions work on "words". EViews views anything after an open parenthesis as the same word, until a closed parenthesis is encountered.

Thus:

Code: Select all

@pc(a1 @pc(a2 @pc(a3 @pc(a4 @pc(a5 @pc(a6
is one word.

where as:

Code: Select all

a1) a2) a3) a4) a5) a6)
is 6 words.