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" <[email protected]>
To   [email protected]
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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index