Announcement

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

  • Exporting from Stata to Overleaf

    Hello everyone,

    I ran a chi-squared test and now I want to export the result table into my overleaf file.

    This is the command I have for the table:

    ssc install estout

    tabulate group_type honesty, cchi2 cell chi2 column expected exact lrchi2 row V

  • #2
    the way I do it is
    Code:
    ssc install outreg2
    [command]
    outreg2 using myfile.tex, [options]

    Comment


    • #3
      I like using
      Code:
      esttab using <filename>, tex
      . This creates a local tex file with the required code, which you can copy-paste/export into Overleaf.

      Comment


      • #4
        In addition to the helpful comments above: if you have premium Overleaf, you can link to Dropbox, so you could copy the tex file to your Overleaf project folder in dropbox, and then it will sync to Overleaf automatically.

        So if your project name is ThisProject and your path to Dropbox is C:\whatever\Dropbox, you could


        Code:
        local overleafPath "C:\whatever\Dropbox\apps\Overleaf\ThisProject"
        
        esttab using myTable.tex, replace 
        
        copy myTable.tex "`overleafPath'/myTable.tex", replace

        Comment

        Working...
        X