Announcement

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

  • rename variable in esttab

    Hey,
    I used esttab to generate a table with five regression models:

    HTML Code:
    esttab model1 model2 model3 model4 model5  using TableA.tex, replace  b(3) se(3) nomtitle label star(* 0.10 ** 0.05 *** 0.01) drop(_IYear_2004 _IYear_2005 _IYear_2006  _IYear_2007 _IYear_2008 _IYear_2009 _IYear_2010 _IYear_2011 _IYear_2012 _IYear_2013 _IYear_2014 _IYear_2015 _IYear_2016 _IYear_2017 _IYear_2018  _IYear_2019)booktabs alignment(D{.}{.}{-1}) ///
    title(Regression table\label{tab1})
    In the models, I have an interaction term c.X##c.X, which outputs X × X in the table. I wish to change the command so the output will be X^2 or X squared.
    How can I achieve this?

    Many thanks!

  • #2
    estout is from SSC, as you are asked to explain (FAQ Advice #12). See the -coeflabel()- option in

    Code:
    help estout

    Comment


    • #3
      Hope this is usefull: https://www.statalist.org/forums/for...terms-to-latex

      Comment

      Working...
      X