On Thu, Jan 2, 2025 at 12:40 PM Riccardo (Jack) Lucchetti <p002...@staff.univpm.it> wrote: > > On 02/01/2025 13:35, Sven Schreiber wrote: > > Am 19.12.2024 um 20:13 schrieb Sven Schreiber: > > > > I tried to replicate this problem with a public dataset, but that > > wasn't so easy. > > Here's a script that replicates the problem: > > <hansl> > nulldata 11 > x = normal() > d = !(index % 3) > dataset addobs 1 > print -o > <hansl> > > Note that the dataset is not even declared as time-series. I guess we > should have to revisit the real_periodic_dummy() function in > lib/src/dataset.c. > > One of the things I'd do (but wouldn't fix the problem you spotted) is > to change the code block > > > maybe_extend_dummies(dset, oldn); > if (dataset_is_time_series(dset)) { > maybe_extend_lags(dset, oldn, dset->n - 1); > } > > > at line 1121 by moving the call to "maybe_extend_dummies(dset, oldn)" > inside the if block: I don't think this should be done for a > cross-sectional dataset (maybe for panel datasets...).
Yes, agreed. That's now done in git. Allin _______________________________________________ Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it Website: https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/