Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: -xi- with multible variables

From   "Prahm, Jeremy" <[email protected]>
To   <[email protected]>
Subject   st: -xi- with multible variables
Date   Fri, 11 Mar 2005 11:46:17 -0600

Is there some way to use the -xi- command with multiple variables?  This
is the context of a three level nested logit model with around 10
independent variables.  I need to create interactions for all of the

I have a categorical variable that I want to interact with a number of
continuous variables, is there a Stata command to do this?  Xi only
seems to work with one variable.

Let variable categorical_1-categorical_3 have 5 levels each.
Let var1-var8 be continuous variables that I want to interact them with.
Is there some way to interact categorical_1*(var1-var8),
categorical_2*(var1-var8), and categorical_3*(var1-var8) easily?  I know
I can change the prefix, but this still requires 24 different prefixes
and creates a number of redundant dummies.  Surely this must be a common
task and I'm overlooking something.

Thanks for any help you can give.

Jeremy Prahm

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index