Announcement

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

  • Stata 15: putdocx table from eststo

    Hi,

    I would like to use this new feature in Stata 15, putdocx
    Currently, I have code in this form:
    Code:
        eststo a : quietly logit total_abs abs_base  `var', or
        eststo b : quietly logit total_abs abs_base `var' `adjs'    , or
        eststo c : quietly logit total_abs abs_base `var' `adjs' `adja'    , or
        noisily esttab a b c, wide eform ci
    I would like to write all these tables to a word document with putdocx instead of using esttab, but I dont really get how to do this.
    I have tried multiple things, fx
    Code:
    putdocx begin
    putdocx table test=table(a b c)
    ...
    but nothing seams to work. Any ideas on what I am doing wrong?
    Thanks!

  • #2
    Maybe this thread as well as the link thereby shared may interest you.
    Best regards,

    Marcos

    Comment


    • #3
      Originally posted by Marcos Almeida View Post
      Maybe this thread as well as the link thereby shared may interest you.
      Thanks, I think that solves my problem!

      Comment


      • #4
        Hi everybody,

        I´d like to put a correlation table stored via eststo into a word document using putdocx

        Code:
        eststo clear
        eststo: estpost correlate dv iv1 iv2
        esttab est1, b(%9.2fc) p(%9.2fc)
        
        putdocx begin    
        putdocx table results = table(est1)
        I receive the following error message: "table: invalid table specification".

        I also tried the following alternative:
        Code:
        putdocx table results = etable
        which leads to this error message: "Information for the estimation table not found; Please replay estimation results and try again".

        Any advice welcome!
        Thank a lot in advance for your support.

        Comment


        • #5
          Dear Johnson

          It is probably not relevant to you any more, but for future references is here a way of including estout results in putdocx - altou it certainly destroys the layout.
          Here I will neglect the possibility of -esttab ... using filename.rtf- and then afterwards copy-paste the table to the MS Word document.

          Code:
          sysuse auto, clear
          
          eststo model_1 , title(Model One) : regress price i.foreign
          
          eststo model_2, title(Model Two) : regress price mpg
          
          
          putdocx begin
          putdocx table tbl1 = etable
          
          local esttab_options label  star aic ci mlabel(,titles)
          
          esttab, `esttab_options' // for comparison
          esttab, `esttab_options' plain // for comparison
          
          esttab using esttab_1.csv, replace `esttab_options' plain
          
          import delimited esttab_1.csv, clear
          
          putdocx table tbl2 = data(*)
          putdocx save estout_putdocx_test, replace
          Last edited by Dennis Lund Hansen; 29 Dec 2018, 14:39. Reason: correction of path

          Comment

          Working...
          X