Announcement

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

  • Simple question on asdoc and label lengths

    Hi all,

    I am using asdoc to export some simple summary stats to word, using labels as variable names - When they export, the end of the label is cut off. I have tried to use all the different options to extend it, but I think the length of labels must be limited somehow. In any case, I am generating a fairly large number of summary stats and it would be incredibly helpful to be able to use the full label if possible.

    Any help would be much appreciated!

    Thanks all!!

  • #2
    Still hoping to figure this out, if anyone can help?

    Thanks!

    Comment


    • #3
      I have to start with advice never to describe your question as simple, on at least the following grounds:

      1. The question may be simple, but the answer might well not be.

      2. The question may seem simple, but often really it isn't at all (e.g. what should I do with outliers? or the canonical what should I do to analyse my data?)

      3. If it is really simple, why can't you answer it?

      So far, so smart-ass and negative, but to be candid experienced members who answer questions, and with any tendency to dyspepsia, are more likely to be put off by such wording than to be charmed by it. And you want them on your side.

      More constructively, you clearly labelled your question as being about asdoc, so people who never use it are likely to bail out immediately. (You should say it's from SSC.) Somehow Attaullah Shah fons et origo of the same command missed your question, so here's flagging of him.

      Most crucially, what's most obviously lacking in your question is a reproducible example showing the problem with example data, specific code, and specific results. I don't use asdoc but if I did I would surely and sorely want to see such an example

      Just bumping your question is always weaker than improving it.

      The more important points in this post are already documented for you to read in the FAQ.

      https://www.statalist.org/forums/help#stata on giving good examples and on explaining community-contributed commands

      https://www.statalist.org/forums/help#adviceextras #1 on (not) bumping

      Comment


      • #4
        Thank you Nick Cox for tagging me in the post. To avoid any kind of abbreviation, you can use the option
        Code:
        abb(.)
        Or to abbreviate lengthy names up to a given number of characters, you can use abb(#), e.g. for 20 characters, it will be
        Code:
        abb(20)
        Please note that first, you need to install an updated version of asdoc from my site
        Copy and paste the following line in Stata and press enter.
        Code:
        net install asdoc, from(http://fintechprofessor.com) replace
        Please note that the above line has to be copied in full. After installation of the new version, then restart Stata.



        Code:
        sysuse auto, clear
        
        ren price A_Very_Lengthy_Name_for_The_Pr
        
        asdoc sum A_Very_Lengthy_Name_for_The_Pr , replace
        
        asdoc sum A_Very_Lengthy_Name_for_The_Pr, abb(.) replace
        Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	17.3 KB
ID:	1522688

        For those who are not yet familiar with asdoc, asdoc can be downloaded from SSC and can be used with almost all Stata commands. Here is a short blog post that shows how asdoc can be used with any Stata command http://fintechprofessor.com/2018/02/...basic-example/. You can also watch several YouTube videos that show the use of asdoc https://www.youtube.com/watch?v=zdI6...LwodAk2oqLYhr-

        Regards
        --------------------------------------------------
        Attaullah Shah, PhD.
        Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
        FinTechProfessor.com
        https://asdocx.com
        Check out my asdoc program, which sends outputs to MS Word.
        For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

        Comment


        • #5
          Nick Cox

          Apologies, my intention was not to diminish any response, but just to suggest a level of difficulty, And my expectation was that there would be a short answer that I could not figure out myself, the bump because I believed my question was already sufficiently well asked, but perhaps missed. This speaks to my inexperience in posing a question constructively here, which I will try to remedy in future..

          @Attaullah Shah

          Thank you so much, thats very helpful!
          Best

          Comment

          Working...
          X