Am 02.07.2015 um 01:46 schrieb Allin Cottrell:
So here's my proposal: in the circumstances described above, if
you issue a command to shrink the dataset permanently, gretl checks to
see whether all saved models fall under the "easy case". If so, fine. If
not, you get a warning that not all saved models can be preserved, with
a "Go ahead? Yes/No" dialog. If you say "Yes", we
destroy all the models that would turn into zombies.
Any comments/suggestions?
I don't remember the discussion leading to "--permanent" (hopefully it
wasn't my request...), but anyway. In principle the idea sounds good. A
couple of questions:
First, what happens if you do --permanent via script? Do you still get a
dialog? I guess not, but what happens instead? I guess there would be a
case to halt with an error. However, this would also suggest the
possibility to save the current session (to .gretl) via script commands,
something which currently isn't possible AFAIK.
Secondly, the current status quo of the session right before --permanent
could be saved "automatically" in a kind of snapshot .gretl session
file. In essence, this would be a step towards a kind of autosave
feature which may be nice in any case.
Third, why actually is --permanent not available for regular sample
selection (without --restrict etc.)? It says so in the docs, and in the
GUI only the corresponding dialog(s?) have that option, but I don't see
the reason right now.
Finally, what does for example Eviews do? They also have
equation/system/model objects. Perhaps they even disallow to throw away
the data then. I could check if that were interesting.
cheers,
sven