Announcement

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

  • outreg2 table to pdf

    Dear Statalist

    I try to make some tables for my bachelor thesis, but have trouble making them look nice. I have tried to use outreg2, but it causes som problems.

    I have a mac and have a problem with getting the output as pdf.

    My code is:

    regress Matematik_score Relativ_alder Født_i_DK ressourcer1 ressourcer3 ressourcer4
    outreg2 using mydoc.pdf, replace

    regress Matematik_score Relativ_alder_til_tiden født_i_DK ressourcer1 ressourcer3 ressourcer4
    outreg2 using mydoc.pdf, append

    shellout using `"mydoc.doc"'

    When I then try to open the table as .pdf, it say that the file is damaged and cannot open...

    How do i solve this problem and get my table output as pdf?

  • #2
    Given that outreg2 does not claim to produce files in pdf format, it is no surprise that the file it outputs is not a pdf file despite the name you give it. Look at the section with the header "Output Files" in the outreg2 help for more information about what formats it does produce.

    If you're using Stata 15 you could use the putpdf command to create pdf files. If you're using an older version of Stata and cannot upgrade you are likely limited to producing output in other formats and converting it to pdf after the fact.

    Comment


    • #3
      Thank you, that make sense. Is it then possible to connect the outreg2 command and the putpdf command?

      Comment

      Working...
      X