On Fri, 1 Oct 2021, Sven Schreiber wrote:
Am 01.10.2021 um 00:42 schrieb Allin Cottrell:
> On Thu, 30 Sep 2021, Sven Schreiber wrote:
>
> > Am 29.09.2021 um 22:20 schrieb Cottrell, Allin:
> > > Ah, never mind. Using an artificial panel dataset as per your
> > > specification, I see that the --panel-time option seems to have been
> > > subject to bitrot since I last tested it. We'll see about fixing
that.
> >
> > Thanks, Allin! Does that mean that time-related sample restrictions
> > would become available, too?
> >
> > Example:
> >
> > smpl t > 1980:1 --restrict
>
> As of now panel-time is only about plotting. Patches welcome, of course ;-)
Actually, that's not entirely true, I think. In order to use $obsdate in
a panel dataset, panel-time needs to be used. (And works fine.) So the
following is possible already:
setobs 4 2000:1 --panel-time # arbitrary example
series dates = $obsdate
smpl dates >= 20200101 --restrict
Ah, you're right; I'd forgotten about that.
What's the difference to what I asked in my question? Well, right
now
it's more complicated. The user currently has to know the ISO date
format and be able to work with it, manually translating 2020:1 to the
representation 20200101. And the $obsdate accessor has to be known.
I think in the longer term it would be good if setting the panel-time
and adding a date series to the panel dataset were possible from the menus.
Yes, agreed, that ought to be easier.
Allin