Announcement

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

  • Automatically generating Topline Reports

    I am trying to write a .do file that will generate monthly reports based on a dataset that will be updated regularly.

    I figure there must be some way to generate a word document with professional looking tables of summary statistics, but I cannot figure out how to do it. I have played around with tabout, but the tables don't look very good in word. Are there some options I am not utilizing well, is there a better command to use, etc.?

    Here is the code I am using:

    tabout var using "document_name", append cells(freq col)

  • #2
    As a start, try search microsoft and look at the results. Note especially the (apparently complex) Mata _docx functions and several techniques described in Stata Journal articles.

    Comment


    • #3
      If an option for you, there are commands that output LaTeX tables. I prefer including those in .tex files to finally get a .ps or .pdf file.
      You should:

      1. Read the FAQ carefully.

      2. "Say exactly what you typed and exactly what Stata typed (or did) in response. N.B. exactly!"

      3. Describe your dataset. Use list to list data when you are doing so. Use input to type in your own dataset fragment that others can experiment with.

      4. Use the advanced editing options to appropriately format quotes, data, code and Stata output. The advanced options can be toggled on/off using the A button in the top right corner of the text editor.

      Comment


      • #4
        If an option for you, there are commands that output LaTeX tables. I prefer including those in .tex files to finally get a .ps or .pdf file.
        I use LaTeX quite a bit, are there any specific commands that you use for this purpose?

        Comment


        • #5
          I have used -estout- and -tabout- before (both from SSC), and find they are enough for my past/current needs. Both have many options that allow fine customization of tables that can be exported to .tex files.

          Try also -findit sjlatex- and -search latex-. The latter should point to more resources.
          You should:

          1. Read the FAQ carefully.

          2. "Say exactly what you typed and exactly what Stata typed (or did) in response. N.B. exactly!"

          3. Describe your dataset. Use list to list data when you are doing so. Use input to type in your own dataset fragment that others can experiment with.

          4. Use the advanced editing options to appropriately format quotes, data, code and Stata output. The advanced options can be toggled on/off using the A button in the top right corner of the text editor.

          Comment

          Working...
          X