On Wed, 15 Jul 2020, Artur Tarassow wrote:
Am 15.07.20 um 20:02 schrieb Allin Cottrell:
> On Wed, 15 Jul 2020, atecon(a)posteo.de wrote:
>
>> Hi,
>> as nobody replied, yet: Can anybody confirm this behaviour?
>
> The reference is to
>
https://www.mail-archive.com/gretl-users@gretlml.univpm.it/msg14808.html
>
> Yes, I can confirm the behavior described there, but I don't think it's a
> bug. Restricting the sample cannot change the fact that Chrysler is firm 4
> of 10 in the grunfeld dataset, and so the string-valued "firmname" series
> must comprise at least 10 strings. Otherwise it would be impossible to undo
> the restriction.
>
Thanks for your response, Allin.
But what about the case when adding the " --permanent" flag? In this case one
cannot undo the restriction but my example would still return a string array
of length 11.
I can see a case for shrinking the strings array when the
--permanent option is given, though it's not totally clear-cut.
> If you want to destroy that information and reconstitute the
string values
> on a smaller scale you can
>
> 1) Impose the sample restriction
> 2) Save the reduced dataset as CSV
> 3) Open the CSV and save as gdt
But this was exactly the example I came up with. The only difference is that
I tried to store a gdt instead of a csv file.
But that's a big difference, and it should be obvious why. When
saving as CSV, where and how would we save the additional strings?
Or the numeric codes associated with the strings? (Even if we wanted
to.)
Allin