On Wed, 23 Feb 2022, Sven Schreiber wrote:
Am 20.01.2022 um 13:00 schrieb Sven Schreiber:
> Hi,
>
> for a given panel dataset with embedded information about the time
> dimension structure I want to obtain the periodicity in the time
> direction; for example the value 4 if the data are quarterly (for
> several cross units, of course, because we're in a panel). I know that
> the $pd accessor doesn't work here because in a panel context it gives
> me the total length of the time dimension (as documented).
>
> I'm wondering whether there is a better (shorter) way than the following
> hansl function and test cases:
To whom it may concern: There's now a new dollar accessor $panelpd which
provides that information (returns NA if it's not a panel dataset). This
will be documented shortly.
Just to clarify: this is in the development version. Thie feature will
appear in gretl version 2022b.
-------------------------------------------------------
Riccardo (Jack) Lucchetti
Dipartimento di Scienze Economiche e Sociali (DiSES)
Università Politecnica delle Marche
(formerly known as Università di Ancona)
r.lucchetti(a)univpm.it
http://www2.econ.univpm.it/servizi/hpp/lucchetti
-------------------------------------------------------