Announcement

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

  • Export Graphs and Charts from Stata to Word with asdocx

    With the recent update of the asdocx, its users can now export Stata graphs / charts to Word files. Exporting graphs and charts from Stata to a Word document with asdocx is as easy as adding asdocx to the beginning of any graph / chart command. So the syntax remains the same as using asdoc / asdocx with any other Stata command. In this brief post, I show how we can export summary statistics and graphs to the same document. It will take just two lines of codes, with stunning output.
    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.

  • #2
    Dear @Attaullah Shah, How can i install asdoc command?I run ssc install asdocx, but i failed to install. thanks

    Raymond
    Best regards.

    Raymond Zhang
    Stata 17.0,MP

    Comment


    • #3
      See @Attaullah Shah's link at https://fintechprofessor.com/asdocx/

      asdocx is not a free command on SSC. You must order it.

      Comment


      • #4
        Dear Raymond
        asdoc is free and can be installed from ssc. asdocx is its premium version, currently available only for $9.99. It has ton of additional features, to start with, see this link https://fintechprofessor.com/asdocx/
        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
          Thank you for your reply.I will try.
          Best regards.

          Raymond Zhang
          Stata 17.0,MP

          Comment


          • #6
            Thanks for this wonderful program. It is working great. I just tried exporting histogram, but it did not work. Can you please help.
            Code:
            sysuse auto, clear
            asdocx hist price

            Comment


            • #7
              Thanks for your feedback. The keywords hist and histograms were not included in the graph command list. I have updated asdocx to fix this issue. To update to the latest version of asdocx, type:
              Code:
              asdocx_update
              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


              • #8
                That is wonderful! I have on more question, how can we add title to the graph in the asdocx setting?

                Comment


                • #9
                  I have added these features to asdocx now. You can use the title() option to set the graph title and fs_tile() option to set the font size of the title. See the following example, where the title is Scatter of Price and Mpg with the font size of 30pt.
                  Code:
                  * To update asdocx
                  asdocx_update
                  
                  * Use example data
                  sysuse auto, clear
                  
                  * Create the graph and send to word document
                  asdocx scatter price mpg, title(Scatter of Price and Mpg) fs_title(30) replace
                  Click image for larger version

Name:	Graph.png
Views:	1
Size:	83.5 KB
ID:	1590485

                  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


                  • #10
                    Many thanks! You probably don't know just how much work you saved us (ALOT)!

                    Comment

                    Working...
                    X