Announcement

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

  • putdocx for a simple article

    I would like to know how to use putdocx to write a Word document containing:

    1) The following paragraph: "This is the text of the article"

    2) Two tables with the results of the following Stata commands, as they appear in the results window of Stata (that is, in a similar format).

    sum y x

    reg y x

    I would appreciate any help.

    Esteban

  • #2
    I will point you towards two good resources that will, in general, show you how to use -putdocx- and the new -table- command in Stata 17.

    1) See the documentation for -putdocx- by typing into Stata -help putdocx- and going to the PDF documentation (linked to at the top). In particular, there are some very useful examples in the Remarks and Examples section that will get you started with basics of report creation and workflow.

    2) A series of blog posts by Chuck Huber to use the new -table- can be found here. He shows how to collect the sorts of stats you are seeking.

    Comment


    • #3
      Thank you for the references! I will read the "table" manual.
      For the descriptive statistics, "asdoc sum X Y, save(Table1)" is straightforward. I will use it for my current research, and later I will try to find the way to produce the same output with table.
      Last edited by Esteban Colla; 11 Mar 2022, 19:38.

      Comment


      • #4
        You're welcome. You can use -asdoc- (SSC) but that is a user-contributed command, not standard Stata, for your information.

        Comment

        Working...
        X