Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: automatically label interaction terms


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: automatically label interaction terms
Date   Mon, 21 Jul 2008 11:04:48 -0400

Andrea Bennett <[email protected]> :
  findit interaction
finds -xi- but not -xi3- for some reason.  So see also  -findit xi3-

On Mon, Jul 21, 2008 at 10:54 AM, Andrea Bennett <[email protected]> wrote:
> Dear all,
>
> I wonder if anyone knows a user written Stata command which allows one to
> generate interaction terms, e.g. -female*age- or -female*group1-,
> -female*group2- and -female*group3-, so that the labels of each variable are
> used for the interaction terms (e.g. "female * age", "female * social class
> 3").
>
> I just fear that at the end of the day, I will want to rename a few
> variables. If one could only rename one variable (the non-interacted) and
> the rest would be automatically generated, that would take away some
> replacing besides the fact that the do-file won't grow that much...
>
> Looking forward to any inputs! Kind regards,
>
> Andrea
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index