Statalist The Stata Listserver


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

RE: st: interaction terms with regress (and logit...)


From   "louis boakye-yiadom" <louisby@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   RE: st: interaction terms with regress (and logit...)
Date   Fri, 07 Apr 2006 19:38:18 +0000

How about trying something like the following?:
gen z=x1*x2
logit y x1 x2 z

Louis

Dear COlleagues:

How come

logit y x1 x2 x1*x2

gives an error "variable x1*x2 not found?"

Thanks,

Larry

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index