Announcement

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

  • Error trying to export regression results using esttab command

    Dear All,
    After running:
    Code:
    est clear
     
    reg growth hhsize yrssch hhsizesqrd agesqrd r sog
    eststo m1
    
    reg growth hhsize yrssch hhsizesqrd agesqrd r sxp
    eststo m2
    
    reg growth hhsize yrssch hhsizesqrd agesqrd r sor
    eststo m3
    
    reg growth hhsize yrssch hhsizesqrd agesqrd r cor
    eststo m4
    
    reg growth hhsize yrssch hhsizesqrd agesqrd r npd
    eststo m5
    Instead of getting a word file with the reg results, I got:
    Code:
    .
    . esttab m* using Reg1.rtf, replace se(3) nogaps stats(r2 N df_r, fmt(3 0)) ///
    >  label nonumbers modelwidth(8) mtitles("SOG" "SXP" "SOR" "COR" "NPD") ///
    >  addnote("Source: Six Sweeps 6 of Household surveys of Nigeria") ///
    >  title({\b Regressions: growth and oil intensity})
    (note: file Reg1.rtf not found)
    file Reg1.rtf could not be opened
    r(603);
    
    end of do-file
    
    r(603);
    .

    The error message is" "
    file Reg1.rtf could not be opened"

    Any help, welcome and appreciated.

    Thanks,
    Dapel
    Last edited by Zuhumnan Dapel; 17 Jun 2017, 11:51.

  • #2
    Did you try to change the working directory into one that you are allowed to access. type help cd for more information.

    Comment


    • #3
      Yeah! This helped:
      Code:
      mkdir C:/results9
      cd C:/results9

      Comment

      Working...
      X