Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: Label interaction variable created by factor variable function


From   Michael Crain <michaelcrain@ymail.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index