Announcement

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

  • Exporting table from frame into word

    Hello,

    I am trying to export mean and confidence interval data that I used in the frame. I tried the codes estpost and
    esttab, but the latter gives me the error message that the file could not be opened. How can I deal with it?

    I want a table to put into my document that contains mean, upper and lower bounds of a confidence interval.

    Thanks,
    Farogat.

  • #2
    Your question really isn't clear without more detail, or at a minimum it is too difficult to guess at a good answer from what you have shared. Please help us help you. Show example data. Show your code. Show us what Stata told you. Tell us what precisely is wrong. The Statalist FAQ provides advice on effectively posing your questions, posting data, and sharing Stata output.

    Comment


    • #3
      Code:
      estpost ci results
      esttab using "\\ntsamba1.server.uni-frankfurt.de\s0312942\Desktop\Thesis\Dwelling ownership\U
      > zb - Kyg\Coef.doc"
      
      
      file \ntsamba1.server.uni-frankfurt.de\s0312942\Desktop\Thesis\Dwelling ownership\Uzb -
          Kyg\Coef.doc could not be opened
      r(603);
      Click image for larger version

Name:	111.PNG
Views:	1
Size:	29.1 KB
ID:	1653162



      I want to export the Stata output (above) into a nice word file
      Last edited by Farogat WIUT; 05 Mar 2022, 10:02.

      Comment


      • #4
        Because the backslash character can have a special meaning in Stata, Stata also supports using forward slashes in file system paths on Windows, as is normal on macOS and Linux. I am concerned that your two backslashes before your server name have been reduced to a single backslash in the error message, which suggests that what follows is expected by Windows to be a directory name rather than a server name. (I think, I don't routinely use Windows.)

        So I would suggest trying
        Code:
        esttab using "//ntsamba1.server.uni-frankfurt.de\s0312942\Desktop\Thesis\Dwelling ownership\Uzb - Kyg\Coef.doc", replace
        where I have added the replace option for good measure.

        Also, you should be sure you don't already have an earlier version of Coef.doc open in Word; that will prevent it from being replaced.

        Comment

        Working...
        X