Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Strongly agree with wbuchanan's recommendation in #382, but note that the ustrregexm() function using pipe operators (|) can serve a similar purpose to inlist() without the element limitation.

    Comment


    • Asjad Naqvi and daniel klein , I think that Asjad might be referring to variable labels, not value labels. It would often be useful to have a way to retain (perhaps a slightly altered version of) variable labels after either -reshape- or -collapse-. I posted a program to do this on CGD's Stata website as -retainlbl-:

      Code:
      view net describe retainlbl, from(http://digital.cgdev.org/doc/stata/MO/Misc)
      I designed version 2.0 of -retainlbl- to be run on the variables prior to executing either -reshape- or -collapse-, which would store the variable labels with the variable names in global macros. Then the user would again run -retainlbl- after completing either -reshape- or -collapse- to restore the variable labels, or perhaps slightly modified versions of those labels. This approach is consistent with -reshape-'s use of variable -characteristics- and global macros to store information on the -reshape- so that it can be reversed.

      By the way, the help files for -reshape- and -collapse- could be improved by describing how these two commands deal with variable and value labels. In all versions through 17, the word "label" is absent from both help files. The PDF documentation for -reshape- is also silent on labels, while that for -collapse- says "collapse adds meaningful variable labels to the variables in this new dataset." I don't like Stata's version of a "meaningful" variable label. I frequently prefer to keep the same unchanged variable label or to add my own prefix or suffix to the existing variable label. (See the -retainlbl- help file for further detail.)

      Comment


      • I wish two things to happen in Stata 18. First, the bookmarks can be made in different levels, i.e. level 1 and level 1.1. Second, the length limit in rename option can be longer. For instance, when I esttab using tex file, I may need latex math symbols ($\times \text{treatment}$) that can take some digits and it returned an error.

        Comment


        • Originally posted by Xiaogeng Xu View Post
          I wish two things to happen in Stata 18. First, the bookmarks can be made in different levels, i.e. level 1 and level 1.1.
          This exists in Stata 17, though I don't recall now precisely when this was introduced and I can't look it up now.

          Code:
          **# Level 1
          **## Level 2

          Comment


          • Originally posted by Asjad Naqvi View Post
            Can we have version checks for user-written or SSC programs please especially when programming ados. For example, if a program calls another program, then, it should flag the user if he/she is using an older version of an already installed program and should upgrade it.

            I sometimes get queries that packages have broken down. But this is usually because users have not upgraded Ben Jann's palettes package, etc.

            "ado update" already does this checking, so the underlying functionality is there.
            I have suggested once or twice at Stata Conference Wishes&Grumbles sessions that Stata should automatically check for the availability of such updates at the same time when it checks for updates of the Stata software itself. Many users probably do not even know that ado update exists, and they just keep using the version of community-contributed packages from when they first installed it. If I remember correctly, Alan Riley's response was that they do not want to impose such updates on the users because community-contributed packages usually do not have any version control and some users might not want to get the updates by choice.

            I still believe that automatically informing users about the availability of updates to community-contributed packages, but leaving them the choice whether they want to update or not, would have more advantages than disadvantages. If a user does not like that, they could then still opt out of automatic update checks somewhere in the settings (similar to updates for the software itself).
            Last edited by Sebastian Kripfganz; 02 Jun 2022, 09:19.
            https://twitter.com/Kripfganz

            Comment


            • Indeed, most user-written programs provide little or no version control (e.g. you can't tell them to use the same syntax as the 2013 version of the program did), nor do they notify you a newer version is available. I had someone write me a year or two ago about a bug in my gologit2 program. They were right -- but I had fixed the bug in 2007, and their version was older than that.

              I try to avoid calling other user-written programs in my own programs. I'm always afraid an author might make some change and unintentionally zap my program. Sometimes, with permission, I copy part of the code from another program into my own. But that isn't feasible with a big program like esttab.

              User-written programs are great, but they don't have all the niceties that programs written by people who get paid for this stuff do,
              -------------------------------------------
              Richard Williams, Notre Dame Dept of Sociology
              Stata Version: 17.0 MP (2 processor)

              EMAIL: [email protected]
              WWW: https://www3.nd.edu/~rwilliam

              Comment


              • It would be better if STATA command: collect export, as(docx) accept the append option so that one can export multiple tables in one word document file. would also be better if one could be able to specify which page of the word document to export a table from STATA.

                Comment


                • Here's a tiny convenience that could probably be implemented easily. The -gen- option already allows you to assign a value label to the variable you are creating (postfixing :var_label_name to the name of the variable) and to specify its location in the data set with the -before()- or -after()- options. How about a -format()- option that lets you also apply a display format?

                  Comment


                  • When using a browser on a Mac COMMAND-minus and COMMAND-plus decrease and increase the page's text size, while COMMAND-zero returns the text size to its default.

                    In Stata COMMAND-minus and COMMAND-plus function the same way in the selected window but there is no corresponding COMMAND-zero to return the window's text to its default size.

                    Might V18 developers consider adding this feature?

                    Comment


                    • While we're talking about Mac keyboard shortcuts: cmd-9 used to take you to the active do file, but now duplicates the Windows behavior of opening a new do file. The old behavior was **much** more useful. While you can cycle through windows with cmd-`, depending on what's open, it can take many iterations to get to the do file. With the old behavior, if you really wanted a new do file, you could navigate to the do file window and do cmd-n

                      Comment


                      • Originally posted by Molly Jeffery View Post
                        While we're talking about Mac keyboard shortcuts: cmd-9 used to take you to the active do file, but now duplicates the Windows behavior of opening a new do file. The old behavior was **much** more useful. While you can cycle through windows with cmd-`, depending on what's open, it can take many iterations to get to the do file. With the old behavior, if you really wanted a new do file, you could navigate to the do file window and do cmd-n
                        There's a setting to restore the old behavior of selecting the topmost Do-file Editor in the Do-file Editor's advanced preferences named Keyboard shortcut selects top editor. Support for this setting was also added to Stata for Windows and Stata for Unix.
                        -Chinh Nguyen

                        Comment


                        • Originally posted by Chinh Nguyen (StataCorp) View Post

                          There's a setting to restore the old behavior of selecting the topmost Do-file Editor in the Do-file Editor's advanced preferences named Keyboard shortcut selects top editor. Support for this setting was also added to Stata for Windows and Stata for Unix.
                          Hurray!! Thank you!!

                          Comment


                          • I'd like to see none be added as a vcetype option, at least for the regress command. This option would speed up estimation in situations where standard errors are not necessary. For example, when doing a non-parametric power analysis, a researcher simulates a large number of regressions to obtain a distribution of coefficients, and does not need their standard errors.
                            Associate Professor of Finance and Economics
                            University of Illinois
                            www.julianreif.com

                            Comment


                            • Agree with Julian Reif in #403. The margins command has the nose option, for example. One consideration would be that some or much of the computation time involved in obtaining standard errors has already been invested in obtaining the point estimates themselves (e.g. computing (X'X)-1 for linear regression). But as a general matter allowing vce(none) seems a good idea.

                              Comment


                              • Have folks at Stata considered adding in interactive visualization features to the program? Or is that a far fetched wish? I remember some Stata user makde an attempt to design a code that made visualizations interactive. Not sure if that project is still in progress.

                                Comment

                                Working...
                                X