#145 Gretl is not able to delete data

open
3
2014-11-07
2010-09-24
Good_Newz
No

From time to time gretl gets stuck by saying that a variable is in use by a model when its not. See the attached example. Only one model is build and saved but when I try deleting the variables not used in the model its says that it cannot delete them because they are in use. (clearly they are not) (you cannot delete NRCPI_low in the example file). I remember this used to be a old bug with ARMA model but now it shows with other models (linear models with ar error term).

---------------
Gretl version 1.9.1

Cvet

Discussion

  • Good_Newz
    Good_Newz
    2010-09-24

    example file to show the issue

     
    Attachments
  • Allin Cottrell
    Allin Cottrell
    2010-09-24

    • assigned_to: nobody --> allin
     
  • Allin Cottrell
    Allin Cottrell
    2010-09-24

    It's not really a bug: if NRCPI_Low were deleted this would
    result in the renumbering of the dependent variable in your
    saved model, which is not permitted. But the message
    that the variable is "in use" is perhaps a little misleading.

     
  • Good_Newz
    Good_Newz
    2010-09-24

    Aha. It would be a nice future then to be able to delete those variables since after building a lot of models you would get "locked in" with variables which you later on decided you dont need.
    I guess the alternative is to copy over your variable to a the one u want to delete (that has a lower ID#) and then rename it, rebuild the model and save the model while deleting the old one. It would be a lot of work if you have a lot of variables.

     
  • Sven S.
    Sven S.
    2011-05-19

    This is clearly not a dramatic issue, but the error message may count as a little bug, so I'm leaving this here. Or has the message already been changed since September 2010?

    thanks,
    sven

     
  • Sven S.
    Sven S.
    2011-05-19

    • priority: 5 --> 3
     
  • Sven S.
    Sven S.
    2014-02-21

    [This action is part of a little round of maintenance, sorry for the delay.]

    The misleading error message is still the same in 1.9.14. I would suggest to append the message "Variable in use" with: "or deleting this variable would disrupt the internal data storage."

    thanks,
    sven

     
  • Sven S.
    Sven S.
    2014-05-27

    Error message hasn't changed in 1.9.90 I think.

    thanks,
    sven

     
  • Sven S.
    Sven S.
    2014-11-07

    I just tried the following on a November 2014 snapshot:
    <hansl>
    open denmark
    ols IBO const LRY # IDs 3 and 2
    modeltab add
    delete LRM # ID 1
    </hansl>

    Now I didn't get an error, but also LRM wasn't deleted. So this is kind of funny and IMHO would be another bug? Is this intentional?

    thanks,
    sven