Announcement

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

  • how to change the names of lagged variables when using esttab

    Code:
    ***ssc install esttab
    ***ssc intall elabel
    use https://www.stata-press.com/data/r17/nlswork.dta, clear
    elabel variable hours "Label"
    xtset idcode year
    eststo clear
    xtset idcode year
    eststo:reg ln_wage cl.hours##c.tenure wks_ue south
    esttab using myfile.rtf, varlab (L.hours "Label") label replace
    The above code only change the names for "L.hours", however, the interaction term has a "L", how to replace the names all "L.hours" with "Label" except for defining the name of interaction with
    Code:
    coeflabel(cL.hours#c.tenure "")
    Thanks so much!
Working...
X