Announcement

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

  • Is there a way to export -sum- outputs to a tex file?

    I tried using the SSC command -estout- but unfortunately this command only seems to work with regressions. I could try to just copy and paste them, but I believe this is not the most efficient solution as I would like to use a loop since I have a lot of summary statistics to export. Is there a way to export summary statistics to a LaTeX file ?

    Thanks a lot!

  • #2
    http://repec.org/bocode/e/estout/adv...ml#advanced601
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      asdocx can export summary statistics, regressions, correlations, tabulation, and many other tables from various Stata commands to tex, xlsx, docx, and html formats. You can explore about asdocx here https://fintechprofessor.com/asdocx/
      Regards
      --------------------------------------------------
      Attaullah Shah, PhD.
      Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
      FinTechProfessor.com
      https://asdocx.com
      Check out my asdoc program, which sends outputs to MS Word.
      For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

      Comment


      • #4
        Code:
        clear all
        
        sysuse auto
        
        foreach v of varlist * {
            
            capture confirm numeric variable `v'
            
            if ( _rc==0 ) {
                
                su `v'
                mata : st_global("r(variable)","`v'") // add varname to r()
                collect get r()
            }
        }
        
        collect layout (cmdset)(result[variable N sd min max])
        
        collect export filename.tex
        also see https://blog.stata.com/2021/06/24/cu...assic-table-1/

        Comment

        Working...
        X