On Fri, 10 Dec 2010, Henrique Andrade wrote:
There's a problem that appears with a considerable frequency here
at
my work: To delete unused variables inside a Gretl session.
Please take a look at the .gretl file attached.
The variables "fora_de_uso", "fora_de_uso2", and
"fora_de_uso3" (ID
numbers: 9, 5, and 18, respectively) cannot be deleted even though
they are not being used.
Why does this happen?
It happens because if you were to delete those variables this
would result in the re-numbering of several variables that appear
as dependent or as regressors in saved models, which would totally
confuse gretl.
Perhaps the error message should be adjusted in this case: saying
that the variable is "in use" is not quite accurate. But the
substantive point is correct: you really can't delete those series
without destroying your session file.
Allin Cottrell