Announcement

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

  • Trouble using esttab command

    Dear All,
    One has tried,
    Code:
    . 
    . esttab m* using Reg1.rtf, replace se(3) nogaps stats(r2 N df_r, fmt(3 0)) ///
    >  label nonumbers modelwidth(8) mtitles("model 1" "model 2" "model 3" "model 4") ///
    >  addnote("Source: GUS sweeps 4 to 6" "Sweep 6 longitudinal weight and survey weights applied") ///
    >  title({\b Regression: SDQ, income and family composition})
    (note: file Reg1.rtf not found)
    file Reg1.rtf could not be opened
    r(603);
    I'm using windows. Any help? Thanks, Dapel

  • #2
    It seems likely that your current working directory, into which esttab is trying to write your output file, is one in which you do not have write permission. The pwd command will tell you what directory you are in; if it's not the one you want, the cd command, or Change Working Directory from the File menu, will allow you to change to a suitable directory, or else you can prefix the filename with the full path to its desired location.

    Comment


    • #3
      Dear William,
      Thanks for responding. However, neither of the options suggested solve the problem

      Comment


      • #4
        I would suggest running the commands in the code block below (pwd and dir and your esttab command copied from post #1) and then copying and pasting all three commands and their output into a code block in a new post. Perhaps this will provide sufficient information to diagnose the problem.
        Code:
        pwd
        dir
        esttab m* using Reg1.rtf, replace se(3) nogaps stats(r2 N df_r, fmt(3 0)) ///
        label nonumbers modelwidth(8) mtitles("model 1" "model 2" "model 3" "model 4") ///
        addnote("Source: GUS sweeps 4 to 6" "Sweep 6 longitudinal weight and survey weights applied") ///
        title({\b Regression: SDQ, income and family composition})

        Comment


        • #5
          This has just worked perfectly fine. Thank you very much for helping!

          Comment

          Working...
          X