Announcement

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

  • outreg2 gives .doc file as well as .txt file

    I had been using outreg2 to export my results, but every time the command will give a .doc file as well as a .txt file in the same file name. I am only interested in using the .doc file, I am wondering whether there exist options that prevent the command from generating a .txt file. Thanks.

  • #2
    outreg2 uses the.txt files to store its results and get back these results when needed. You can also try asdoc that uses a different method of writing Stata output to MS Word

    Code:
    ssc install asdoc
    help asdoc
    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


    • #3
      Originally posted by Attaullah Shah View Post
      outreg2 uses the.txt files to store its results and get back these results when needed. You can also try asdoc that uses a different method of writing Stata output to MS Word

      Code:
      ssc install asdoc
      help asdoc
      Hi, Thanks. I will try the command. I developed another way that will erase this files in batch.
      Code:
      local txtfiles: dir . files "*.txt"
      foreach txt in `txtfiles' {
          erase `"`txt'"'
      }

      Comment

      Working...
      X