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]

st:the disadvantage of using -xi- to create indicators for categorical variables


From   Amanda Fu <mandy.fu1@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st:the disadvantage of using -xi- to create indicators for categorical variables
Date   Thu, 16 Dec 2010 17:04:53 -0500

Dear Statalisters,

When using -xi- to create indicators for many categorical variables in
a regression, I cannot help noticing -xi- has some advantage that when
the original variable name is long, the name of  indicator crated are
cut off somewhere then the name of the outcome variable is kind of
unexpected. I have to adjust the indicator name one by one when the
name is long. This causes inconvenience when using -xi-.

But on the other side, if there are many interactions of many
categorical variables, the original way by creating each dummy
variable for each interaction is also time-consuming.

I am curious: can some one here share how you decide to decide to use
-xi- or not to run a regression with lot of categorical variables
interactions?

Thank you for your time!

Best wishes,
Amanda
*
*   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