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().
cheers
sven