Announcement

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

  • Using latex in Coefficient labels esttab

    Hi,

    I am new to STATA and have a question concerning using latex in the coefficient label for esttab.

    I would like to have the variable name show up as "Ownership\_{t-1}" with t-1 as the subscript. Currently, estout displays the table as "Ownership\_{t-1}" verbatim.

    Is there a way to display the variable name with the subscript?

    Here is my code:

    esttab using asdf.html, replace label title("Title") coeflabel(L2.o "Ownership\_{t-1}" count "No. of Firms" ///
    taxp "Tax Payment" poors "Poors" who "Who's Who" L2.citi_off " Citi Officer\_{t-1}" L2.proximity "Proximity\_{t-1}") ///
    long nomtitles cells("b(fmt(a3) star)" t(par fmt(2))) stats(N r2_mfadj r2_cu, labels("Observations" "Adjusted McFadden R2" "Cox-Snell R2"))

    Thanks.

  • #2
    estttab option substitute does this. In fact, the example in the help file is the answer to your question:

    "For example, specify substitute(_ \_) to replace the underscore character (as in _cons or F_p) with it's LaTeX equivalent \_."
    Last edited by Arthur Morris; 14 Nov 2017, 14:11.

    Comment

    Working...
    X