Announcement

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

  • Esttab adding labels when including test outputs in table

    Dear all,

    I am trying to create nice-looking latex tables from my output using esttab.

    Code:
     reg a b c i.year
    test b= c
    estadd scalar mytest = r(F)
    estimates store est1
    
    reg y b c i.year
    test b= c
    estadd scalar mytest = r(F)
    estimates store est2
    
    esttab est1 est2 using `myfile.tex, keep(b c) booktabs stats(N r2 mytest) title(mytitle\label{tab1}) addnote("Mynote") label replace
    creates okay looking tables, but I'd like for them to say "Observations" and "R-squared" or so insted of just N and r2. How do I add the labels properly?

    Best,
    Marco

  • #2
    Code:
    esttab, stats(r2 N, fmt(%9.3f %9.0g) labels(R-squared Observations))

    Comment

    Working...
    X