On Sun, 29 Sep 2019, Artur Tarassow wrote:
Dear all,
it took me a while to understand that $setobs
$setobs ? I think you mean $obsdate.
is only applicable for panel data once the time-dimension of the
panel data set is set using the setobs command with the
'--panel-time' option.
However, this is only seems to work for annual and quarterly data
currently.
And monthly. It was supposed to work for daily data too, but there
was a little problem blocking that, now fixed in git.
See the following example which returns empty series for
frequencies 5 and 7:
<hansl>
set verbose off
open grunfeld.gdt -q
# DOESN'T WORK
setobs 5 2000:1 --panel-time
series obsdate = $obsdate
print obsdate -o --range=1:20
# DOESN'T WORK
setobs 7 2000:1 --panel-time
series obsdate = $obsdate
print obsdate -o --range=1:20
</hansl>
But even with daily dates now working, these examples will not work.
It looks like you're trying to define a frequency of 5 or 7
observations per year, and gretl doesn't know how to attach dates in
such cases. The following, however, will work:
<hansl>
open grunfeld.gdt
setobs 5 2019-01-01 --panel-time
series obsdate = $obsdate
print obsdate -o --range=1:20
</hansl>
Allin