Announcement

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

  • Saving a regression output

    Hi everyone!
    I am trying to export the result of my regression to Latex, and I am following this The Stata-to-LaTeX guide. The guide provides a set of templates… | by Asjad Naqvi | The Stata Guide | Medium. I am trying to run this code they have in webpage

    esttab using "./graphs/guide80/regression1_1.tex", replace ///
    b(3) se(3) nomtitle label star(* 0.10 ** 0.05 *** 0.01) ///
    booktabs ///
    title("Basic regression table \label{reg1}") ///
    addnotes("Data: websuse nlswork" "Second line note")

    by doing this,

    esttab using ".D:\Documents\Silvana Master\Daniel Salinas-Tesis\Inequality of Opportunities\regression1_1.tex", replace \\\
    b(3) se(3) nomtitle label star(* 0.10 ** 0.05 *** 0.01) ///
    booktabs ///
    title("Basic regression table \label{reg1}") ///
    addnotes("Data: websuse nlswork" "Second line note")

    but after the first line esttab using ".D:\Documents\Silvana Master\Daniel Salinas-Tesis\Inequality of Opportunities\regression1_1.tex", replace \\\, i get an error

    option \ not allowed. i have tried changing the backslashes, but it does not work.

    I appreciate if anyone can help me

  • #2
    I've solved it

    Comment


    • #3
      Hello Silvana Builes. I suggest that you post a brief summary of how you solved the problem (with code in code delimiters--see item 12.3 in the FAQ). That could be very helpful to others who find this thread in the future if they have the same question. Thanks for considering.
      --
      Bruce Weaver
      Email: [email protected]
      Version: Stata/MP 19.5 (Windows)

      Comment

      Working...
      X