Menu

#193 Add menu: offer panel trafos; (and better "add new variable" dialog)

None
closed
nobody
None
4
2025-08-26
2023-05-15
No

Taking this here from the mailing list. Jack also suggested that more submenus in the "Add" menu might be good. (E.g. for time-series transformations; lags, diffs etc.)

Discussion

  • Sven Schreiber

    Sven Schreiber - 2023-05-23

    P.S.: However, for functions like pmean() a slight complication is the fact that there does not exist a naming convention as with the transformation commands. (l_, sq_ etc.)
    Therefore, another idea was to perhaps make the dialog window related to "Define new variable" more clever and easier to use.

     
  • Sven Schreiber

    Sven Schreiber - 2024-04-14

    Following up on the last idea above to make the "add new variable" dialog easier, some ideas:

    • pre-insert some stub in the free-form text field, for example something like:
      <new_var_name> = <some_expression>
    • perhaps add a drop-down list selector element which holds (a selection of) the native gretl functions for point-and-click access

    This way, it would perhaps be easier to create (panel-specific) transformed variables.

     
  • Sven Schreiber

    Sven Schreiber - 2024-04-30
    • summary: more variable trafos (e.g. panel-specific) in the menu --> Add menu: have sub-menus; and better "add new variable" dialog
    • Group: -->
     
  • Sven Schreiber

    Sven Schreiber - 2024-04-30

    ... just changing the ticket title to reflect discussions....

     
  • Sven Schreiber

    Sven Schreiber - 2025-05-21
    • summary: Add menu: have sub-menus; and better "add new variable" dialog --> Add menu: have sub-menus; panel trafos; (and better "add new variable" dialog)
     
  • Sven Schreiber

    Sven Schreiber - 2025-05-21

    updating the title again... Previously in this ticket it was seen as a problem that for some transformations like pmean() or so we do not have a naming convention for the new series. However, I just realized that the same situation already exists for example when creating percentage-changes of a series. There is a dialog there where the user must specify a name.
    So it would close a gap to have some of the panel transformations (pmean, pnobs, pxsum, ...) in the "Add" menu in this way, too. Practical use case: When teaching with macro panel data, this is the only step which isn't doable through the menus so far.

     
  • Sven Schreiber

    Sven Schreiber - 2025-06-17
    • summary: Add menu: have sub-menus; panel trafos; (and better "add new variable" dialog) --> Add menu: offer panel trafos; (and better "add new variable" dialog)
     
  • Sven Schreiber

    Sven Schreiber - 2025-06-17

    Updating the ticket title once again - because now the sub-menus feature is implemented (at least since gretl 2025b, maybe earlier)
    So the only things left are stuff which was actually added to this ticket later, namely the offering of panel trafos like pmean(), and the "add new variable" dialog. (Of course it could be debatable if this is worth keeping.)

     
  • Sven Schreiber

    Sven Schreiber - 2025-08-19

    Actually, it occurs to me that my own rudimentary "series_calculator" package could be extended in that way, partly using the GUI-maker functionality that was added to gretl in the meantime...

     
  • Sven Schreiber

    Sven Schreiber - 2025-08-26
    • status: open --> closed
     
  • Sven Schreiber

    Sven Schreiber - 2025-08-26

    The new version of my little package series_calculator now offers panel transformations, and I guess that's good enough for now. So I'm closing this.

     

Log in to post a comment.

MongoDB Logo MongoDB