Are your dependent variables continuous our categorical?
I'm certainly no expert at this Stata stuff yet, but I have been running some
multiple linear regression models with categorical variables, and I have gotten
interactions by using
xi:regress depvar i.var1*i.var2
It looks like this gave me regression coefficients for var 1, var 2, and
var1*var2
--
Christopher W. Ryan, MD
SUNY Upstate Medical University Clinical Campus at Binghamton
and Wilson Family Practice Residency
40 Arch Street, Johnson City, NY 13790
[email protected]
Public key generated with PGP 602i available at
http://home.stny.rr.com/ryancw/PGP602ipublickey.html
or via http://wwwkeys.us.pgp.net:11371
"If you want to build a ship, don't drum up the men to gather wood, divide the
work and give orders. Instead, teach them to yearn for the vast and endless
sea." [Antoine de St. Exupery]
On Fri, 14 Feb 2003 05:57:41 -0500, david huffer wrote:
>Is there a command used to include every 2-way interaction among a
>set
>of variables in a regression-type model? In SAS it is accomplished
>quite easily but so far I haven�t run across a means other than
>typing
>all the possible interactions.
>
>Thanks in advance,
>
>David
>
>
>*
>* 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/