Problem with @WCross

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

johansamuelsson
Posts: 165
Joined: Thu Mar 03, 2011 10:07 pm
Contact:

Problem with @WCross

Postby johansamuelsson » Tue May 05, 2015 7:07 am

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

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

Re: Problem with @WCross

Postby EViews Gareth » Wed May 06, 2015 7:56 am

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.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests