Announcement

Collapse
No announcement yet.
This is a sticky topic.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Allow multiple consecutive putdocx commands to be contained in a {} block. So, borrowing from help putdocx begin,

    Code:
    putdocx begin
    putdocx paragraph
    putdocx text ("Fall report")
    putdocx describe
    putdocx save report1.docx
    could be

    Code:
    putdocx {
      begin
      paragraph
      text ("Fall report")
      describe
      save report1.docx
    }
    and similarly for putpdf, putexcel, etc.

    Comment


    • I'll make a suggestion to make a minor documentation update (and reporting update) for the humble t-test following Bruce's earlier post here.

      Comment


      • Originally posted by Leonardo Guizzetti View Post
        I'll make a suggestion to make a minor documentation update (and reporting update) for the humble t-test following Bruce's earlier post here.
        I'll second that suggestion!

        --
        Bruce Weaver
        Email: [email protected]
        Version: Stata/MP 19.5 (Windows)
        Crypticity belongs in crosswords, not code! 🤨

        Comment


        • Could the ado dir command consider adding an option to display the "command name" of commands downloaded and installed from the Stata Journal, rather than their "pkgid" in the Stata Journal? As is well known, when ado dir is run, commands downloaded from SSC display the command name, which is a very user-friendly way of displaying them; by contrast, commands downloaded from the Stata Journal display only a "id/number" (e.g., st0770). It is precisely for this reason that when a command has both an SSC version and a Stata Journal version, I generally choose to install it from SSC, unless the author has not uploaded the command to SSC.
          I think it is worth pointing out that SSC has never, it seems, been regarded as an "official" or even "semi-official" website of Stata, and so in fact I am very worried about the fate of SSC many years from now. Does KitBaum have a successor? Who else would devote as much effort as he has to meticulously maintaining SSC, decade after decade?

          Code:
          [1402] package st0770 from http://www.stata-journal.com/software/sj25-1
                SJ25-1 st0770. The beyondpareto command for ...
          
          [1403] package sg146 from http://www.stata.com/stb/stb56
                STB-56 sg146.  Parameter est. for the generalized extreme value distribution
          
          [1404] package hillplot from http://fmwww.bc.edu/repec/bocode/h
                'HILLPLOT': module to draw Hill plots for distribution tails
          
          [1405] package mexplot from http://fmwww.bc.edu/repec/bocode/m
                'MEXPLOT': module to draw mean and median excess plots

          Comment


          • Another request concerns Statalist. Would it be possible for Statalist to add a text-coloring menu? Currently on this forum, people write command names or their options with hyphens and set the font to Courier New (eg. -tab_chi-). I think adding a light gray background would be a better setting.
            Click image for larger version

Name:	563.png
Views:	1
Size:	2.8 KB
ID:	1788047

            Comment


            • #199 Package is the term of art here.

              Often packages, even on SSC, include two or more commands, and then it would be hard for Stata to give you what you want, or even to know what you want.

              Often package identifiers on SJ need to be distinct to be identify one update from the original or from any other update.

              Long story short, there are compelling reasons why ado dir does what it does and could not differ, even optionally, without ambiguity.


              Comment


              • Thanks, Nick. Your explanation of the package/command distinction and the one-to-many problem is convincing, and I accept that ado dir cannot simply display a command name in place of the package identifier without introducing ambiguity.

                I'd still like to push back gently on the conclusion that nothing can be done, because the underlying pain point — that SJ packages are hard to identify by their contents — seems addressable without touching ado dir at all. As the example below illustrates, ado describe already contains the relevant information; the problem is only one of entry point.

                Code:
                . ado describe st0337_1
                
                ------------------------------------------------------------------------------------------------
                [1432] package st0337_1 from http://www.stata-journal.com/software/sj18-1
                ------------------------------------------------------------------------------------------------
                
                TITLE
                      SJ18-1 st0337_1. Update: Estimation and testing of...
                
                DESCRIPTION/AUTHOR(S)
                      Update: Estimation and testing of binomial and
                        beta-binomial regression models with and
                        without zero inflation
                      by James W. Hardin, Department of Epidemiology
                           and Biostatistics, University of South
                           Carolina
                         Joseph M. Hilbe, Statistics: School of Social
                           and Family Dynamics, Arizona State
                           University
                      Support:  [email protected]
                      After installation, type help {cmd:betabin},
                        {cmd:betabin postestimation}, {cmd:zib},
                        {cmd:zib postestimation}, {cmd:zibbin}, and
                        {cmd:zibbin postestimation}
                
                INSTALLATION FILES
                      b\betabin.ado
                      b\betabin.sthlp
                      b\betabin_llf.ado
                      b\betabin_p.ado
                      b\betabin_postestimation.sthlp
                      z\zib.ado
                      z\zib.sthlp
                      z\zib_llf.ado
                      z\zib_p.ado
                      z\zib_postestimation.sthlp
                      z\zibbin.ado
                      z\zibbin.sthlp
                      z\zibbin_llf.ado
                      z\zibbin_p.ado
                      z\zibbin_postestimation.sthlp
                
                INSTALLED ON
                      10 Nov 2026
                ------------------------------------------------------------------------------------------------
                
                . ado describe betabin
                The INSTALLATION FILES section already lists betabin.ado, zib.ado, zibbin.ado and their associated files, and the DESCRIPTION even tells the user which help files to type. So the information is there — it is simply not reachable by command name. Running ado describe betabin returns nothing, even though betabin is installed and its package is known.

                That suggests a much narrower and less invasive request than the one I originally made: could ado describe accept a command name as well as a package name, and internally resolve it to the package that provides it? Concretely, when given an argument that is not a known package identifier, ado describe could search the INSTALLATION FILES of installed packages for a matching .ado file and, on a unique hit, describe that package instead.

                I recognise this raises its own questions — what to do when a command is provided by more than one package, how to handle partially installed packages, and what the cost of the lookup is as the number of installed packages grows. But these seem like engineering trade-offs rather than the kind of semantic ambiguity you rightly pointed out for ado dir. It would also leave the package identifier's uniqueness and traceability intact, which I agree is essential.

                Comment


                • We have several commands that save results in files, e.g., statsby. It would be nice to have options to save results in frames for these commands, too.
                  Kind regards

                  nhb

                  Comment


                  • So, the problem is not as Nick suggests (though, given my previous description, that is understandable). In the scenario Nick describes let's say a thread has 100 pages. Only pages 1-5 may be directly accessible. But if it is working correctly, when you get to the bottom of page 5, something--maybe a right arrow, maybe a larger page number has been provided (e.g., 10), maybe a "end of thread-->" arrow--is available to click to get to the later pages. Here, 6 is the last page. I enter 13 in the "go direct to page" window and it erases on takes me to page 6. At the bottom of page 7 are links to "Previous" and links to pages 1, 3, 4, 5, and 6, and 6 is in blue. Sooo, not sure what's going on. I cannot access later pages in the thread. So, in Nick's scenario all pages can be reached, but only some are displayed for immediate access. In what is happening only 6 pages are immediately reachable, and no pages above page 6 can be reached.

                    Comment


                    • Originally posted by Samuel R. Lucas View Post
                      So, the problem is not as Nick suggests (though, given my previous description, that is understandable). In the scenario Nick describes let's say a thread has 100 pages. Only pages 1-5 may be directly accessible. But if it is working correctly, when you get to the bottom of page 5, something--maybe a right arrow, maybe a larger page number has been provided (e.g., 10), maybe a "end of thread-->" arrow--is available to click to get to the later pages. Here, 6 is the last page. I enter 13 in the "go direct to page" window and it erases on takes me to page 6. At the bottom of page 7 are links to "Previous" and links to pages 1, 3, 4, 5, and 6, and 6 is in blue. Sooo, not sure what's going on. I cannot access later pages in the thread. So, in Nick's scenario all pages can be reached, but only some are displayed for immediate access. In what is happening only 6 pages are immediately reachable, and no pages above page 6 can be reached.
                      That might depend on your settings for Statalist. You can change how many posts you want to see through User settings/Account. If you set a higher number, you see fewer pages, but the same total number of posts within the thread. Double check if that is the case, and your post is actually there.

                      Comment


                      • I couldn't get over to see Barna's suggestion but I eventually found the page and reset settings and now I can see the full thread. Wow! I have no idea why that changed. But I am glad it is fixed. Thanks for trying to help.

                        Comment


                        • Please consider a more understandable and use-to-use yrange() option and yscale() option. There are so many examples, just gives two: One and Two
                          yscale() ... never restricts the range over and above what ylabel() does on your behalf.

                          Comment


                          • Chen Samulsion #207

                            The problem here is simple: yrange() (or xrange() either) never omits data by itself and some people are puzzled because they haven't read the documentation, or read it carefully. That's unfortunate when it happens but soluble. (I sense that the person who started the first thread you cite didn't seem to appreciate the explanation. No thanks were registered, any way.)

                            I can't see that Stata will ever want to change the way those options work. I can imagine that some people might like different options that do omit data but again that would seem contrary to the way that Stata works in which if or in can be used for that result (in my view, should be used).

                            I may well be missing your point, in which case please expand on it.

                            Comment


                            • Correction to #208 (and perhaps also in turn to #207 and a thread that cites): there is no yrange() or xrange() option in Stata. What I should have written about is ysc(range()) or xsc(range())

                              Perhaps that was Chen Samulsion meant in #207 too, unless he was meaning to imply that there could be a yrange() option which does what he wants.

                              Comment


                              • Systemic support of polychoric correlation and cfa of ordinal indicators on polychoric correlations.

                                https://www.statalist.org/forums/for...ic-correlation

                                https://www.statalist.org/forums/for...ple-imputation

                                https://www.statalist.org/forums/for...nary-variables

                                Comment

                                Working...
                                X