Page 1 of 1
EViews 13: @ifirst and @ilast commands
Posted: Tue Oct 04, 2022 4:39 am
by mmiller2
The @ifirst and @ilast commands appear to have been broken in the transition from EViews 12 to EViews 13. Please run the following commands in each version:
Code: Select all
wfcreate(wf=work, page=a) a 1901 2100
smpl 1950 2021
series x = 1
smpl @all
scalar per1 = @ifirst(x)
scalar per2 = @ilast(x)
Using EViews 12, per1 = 50 and per2 = 121
Using EViews 13, per1 = 1 and per2 = 72
Re: EViews 13: @ifirst and @ilast commands
Posted: Tue Oct 04, 2022 12:37 pm
by EViews Jason
It will be fixed in the next patch
Re: EViews 13: @ifirst and @ilast commands
Posted: Tue Oct 04, 2022 2:16 pm
by mmiller2
Thanks Jason! Any idea when the patch will be available?
Re: EViews 13: @ifirst and @ilast commands
Posted: Tue Oct 04, 2022 3:04 pm
by EViews Gareth
Within a day or two.
Re: EViews 13: @ifirst and @ilast commands
Posted: Wed Oct 12, 2022 1:50 pm
by mmiller2
There still seems to be something going on with the @ifirst and @ilast functions.
When I run the attached program in EViews 12, I see the following result in the log window.
per1 = 220
per2 = 486
However, when I run the same program in EViews 13, I see:
per1 = 1
per2 = 267
The documentation says, "returns the workfile index of the first non-missing value in the series for the current sample." While, this seems to suggest that the EViews 13 (relative to current sample) result is correct, we have code that is now broken because it has been doing it the EViews 12 way (relative to workfile range) for several years.
Re: EViews 13: @ifirst and @ilast commands
Posted: Wed Oct 12, 2022 4:33 pm
by EViews Jason
We will get a patch out ASAP
Re: EViews 13: @ifirst and @ilast commands
Posted: Fri Oct 14, 2022 6:03 am
by mmiller2
Thanks Jason! I just installed the Oct 13 patch and it's working for me now.