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]

Re: st: RE: interacting two covariates


From   Richard Williams <richardwilliams.ndu@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: interacting two covariates
Date   Tue, 15 Jun 2010 08:49:37 -0500

At 04:02 PM 6/14/2010, Nick Cox wrote:
. help factor variables

Nick
n.j.cox@durham.ac.uk

Ian Breunig

Is there a particular notation to interact two variables within an
estimation command or do I always have to generate a new variable
which multiplies the two variables that I am interacting.  I have
never came across this command notation if it exists so it would be
nice to know if there was a way to do this.  thanks.

The latest Stata Newsletter includes a nice discussion of factor variables. I'll just add that (1) you have to have Stata 11, and (2) a lot of user-written commands (which, alas, include mine) do not support factor variables, so you will have to use the old approach of generating new variables for them.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  Richard.A.Williams.5@ND.Edu
WWW:    http://www.nd.edu/~rwilliam

*
*   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