Am 01.10.21 um 15:52 schrieb Sven Schreiber:
Am 01.10.2021 um 15:44 schrieb Artur T.:
> Am 01.10.21 um 15:32 schrieb Sven Schreiber:
>> clearly documented.) So I think internally the function must not use $pd
>> if $datatype gives you 3 (panel data code) [or 0 (no data)].
>
> True, the panel case is considered now, too.
Sorry Artur, not sure if you're already finished, but the
get_frequency_label function in its current state on github will cause
errors I believe, because 'pd' will be undeclared if $datatype is
different from 2 or 3, but then is checked with if.
Good spot. I adapted it to:
<hansl>
if $datatype == 2
pd = $pd
elif $datatype == 3
pd = $nobs / $pd
else
funcerr("Dataset must be either of type time-series or panel.")
endif
</hansl>
Artur