Am 08.05.20 um 09:42 schrieb Sven Schreiber:
Am 08.05.2020 um 08:38 schrieb Artur Tarassow:
> Hi all,
>
> I've stumbled over this weird thing trying to retrieve the day of Easter
> Sunday applying the easterday() function as shown in the help text.
>
> However, it seems that scalar "d" is not a proper integer as trying to
> restrict the sample to a single day fails with the error message "No
> observations would be left!". Replacing "d" in the "smpl"
command by 5
> scalar e = easterday(2015)
> scalar m = floor(e)
> scalar d = 100*(e-m)
> print e m d
Well, I think it's understandable that gretl doesn't recognize d as an
integer here, since it's a multiple of a decimal number. OK we know that
mathematically no fractional part remains, but how is gretl supposed to
know that? I would expect it works after round().
Hi Sven,
you're right, I can't expect that gretl knows this at this point.
Actually round() seems to work well -- thanks for the hint. I've tried
int(), ceil() and floor but those doesn't solve the issue.
Best,
Artur