Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Label interaction variable created by factor variable function


From   Michael Crain <[email protected]>
To   [email protected]
Subject   st: Label interaction variable created by factor variable function
Date   Sat, 15 Oct 2011 12:36:57 -0700 (PDT)

I am running regressions using Stata's factor variable function with interaction variables: 
- reg y c.x1 c.x2 c.x1#c.x2 -

Also, I am running these regressions from a DO file and using Ben Jann's eststo/esttab add-in in the DO file to export the regression tables as tex files. In the tex files, the label of the interaction variables is "c.x1c.x2"

I realize that Stata does not actually create these interaction variables in the data set so I can't label them the usual way - la var c.x1#c.x2 "My label" -

Is there any way to label these interaction variables in the DO file or do I need to manually edit the interaction variable label in the tex file?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index