Announcement

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

  • mixed & putdocx

    I'm trying to export mixed results into a word doc using this code
    Code:
        mixed var1 i.var2 || id: , 
        putdocx table mytable  = etable
    I continually get an error
    information for the estimation table not found;
    Please replay estimation results and try again
    r(111);
    Any ideas on how to make this table exportable?

    Thanks!
    Sarah

  • #2
    Code:
    mixed var1 i.var2 || id:
    etable, export(filename.docx, replace)

    Comment


    • #3
      Thanks! Is there a way to incorporate this into an existing putdocx? This is one of many tables and sets of results.

      Comment


      • #4
        I cannot reproduce your error. This works fine:
        Code:
        sysuse auto, clear
        
        putdocx begin
        mixed price i.foreign || rep78:
        putdocx table mytable = etable
        putdocx save report.docx, replace
        Can you show us exactly how to reproduce your issue?

        Comment


        • #5
          Thanks for looking further. What's odd is I ran your exact code using the auto dataset, and I got the same error as the one I have above. I've attached a log file to show how that worked. I'm using Stata 19, is that what you're using?
          Attached Files

          Comment


          • #6
            FWIW, I ran the code shown in your log file on my setup, version 19.5 MP4, Windows 64 bit, and, just as Hemanshu Kumar experienced, it ran just fine.

            I don't know what platform he runs on. If he, too, runs Windows, then this could be a problem that only affects Mac or Unix--if that's what you are running on. If, however, you are getting this problems on Windows (or on whatever platform he runs), then it might be an installation issue.

            I assume you have already tried restarting your computer. Also you should be certain that you have the latest updates. After that, you could try uninstalling Stata and then reinstalling it, and then updating it, to see if that solves the problem. If that doesn't work, then I think you will need to refer it to Stata Technical Support.

            Comment


            • #7
              I am on StataNow/MP 19.5 updated to the most recent August 13 update. I am on a Mac (macOS 15.6). Given it appears to runs fine on Windows and Mac, this is unlikely to be platform-related.

              Sarah Heavey could you try one additional thing? Start off with an estimates clear before running the mixed command.

              But yes, this looks like a case for Stata Technical Support.

              Comment

              Working...
              X