REPLACEVAR

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

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

REPLACEVAR

Postby tvonbrasch » Tue Dec 01, 2020 9:04 am

Hi

is this a bug?

Code: Select all

close @all wfcreate q 2000:1 2020:1 model _m _m.append _xaux = pj10 * (_xaux03 * (renpf300 - _xaux02 * ((pj10 + pj10(-1) + pj10(-2) + pj10(-3)) / (pj10(-4 * 2) + pj10(-4 * 2 - 1) + pj10(-4 * 2 - 2) + pj10(-4 * 2 - 3)) - (1 - _xaux02) * (1 + _xaux04) * 2 - 1) * 1 / 2 / 4) / (_xaux03 + _xaux05 * (1 - _xaux03)) + _xaux05 * (1 - _xaux03) * renreallong / (_xaux03 + _xaux05 * (1 - _xaux03)) + risikopr + _xaux03 + trtb / (1 - trtb) * (_xaux03 - _xaux01)) copy _m _m2 _m.replacevar PJ10 VAR show _m show _m2
t

EViews Matt
EViews Developer
Posts: 583
Joined: Thu Apr 25, 2013 7:48 pm

Re: REPLACEVAR

Postby EViews Matt » Tue Dec 01, 2020 1:31 pm

Hello,

Yes, it most definitely is. Lag expressions comprising more than a single constant, e.g., pj10(-4 * 2 - 1), are tripping up the replacement parser.
Last edited by EViews Matt on Wed Dec 02, 2020 12:42 pm, edited 1 time in total.

EViews Matt
EViews Developer
Posts: 583
Joined: Thu Apr 25, 2013 7:48 pm

Re: REPLACEVAR

Postby EViews Matt » Wed Dec 02, 2020 12:41 pm

This will be fixed in the next patch.

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

Re: REPLACEVAR

Postby tvonbrasch » Wed Dec 02, 2020 12:46 pm

Great, thanks!


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests