Announcement

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

  • Exporting tab results to Word using -putdocx-?

    Hi everyone, is it possible to export the results from the -tab- command to a word document using the -putdocx- option (Stata 15)?

    I'm working with a binary variable 'insured' and a list of individuals who are either insured (insured==1) or uninsured (insured==0). I would like to export the frequencies of the insured and uninsured among the 50 individuals. In order words, I would like to export the out from
    Code:
    tab insured
    to Word using the -putdocx- option rather than copy and pasting.

    Thanks in advance!

  • #2
    You might find some of the user-written output routines (estout outreg2 etc.) easier than putdocx.

    Comment


    • #3
      Originally posted by Phil Bromiley View Post
      You might find some of the user-written output routines (estout outreg2 etc.) easier than putdocx.
      Is it possible to use these routines for non-regression outputs? I only need the summary statistics for the existing data set.

      Comment


      • #4
        Check out the user-written command -tab2docx- by our intern Chris Hassell. See the blog entry https://blog.stata.com/2018/06/07/export-tabulation-results-to-excel-update/ for an example.

        Comment


        • #5
          Originally posted by Hua Peng (StataCorp) View Post
          Check out the user-written command -tab2docx- by our intern Chris Hassell.
          Code:
          -tab2docx-
          is nice, but missing the essential sort option.
          P.S. How come this wasn't rolled into Stata 17?
          Thank you for your help!

          Stata SE/17.0, Windows 10 Enterprise

          Comment

          Working...
          X