Page 1 of 1

REPLACEVAR

Posted: Tue Dec 01, 2020 9:04 am
by tvonbrasch
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

Re: REPLACEVAR

Posted: Tue Dec 01, 2020 1:31 pm
by EViews Matt
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.

Re: REPLACEVAR

Posted: Wed Dec 02, 2020 12:41 pm
by EViews Matt
This will be fixed in the next patch.

Re: REPLACEVAR

Posted: Wed Dec 02, 2020 12:46 pm
by tvonbrasch
Great, thanks!