[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: dropping dummies variables
It looks like your missing out the " : " after the xi. It should read:
xi: regress y i.dummy
where dummy is your categorical variable.
On 8/30/05, ALICE DOBSON <email@example.com> wrote:
> Hi Statalisters,
> I have a similar problem. The stata command to create a categorical variable
> is xi i.variable
> I have some very large categorical variables with around 50 categories
> When I use a regression command I drag and drop each category to the command
> for instance xtreg sales market1 market2 market 3 .........
> In such case I get the estimates
> However, when I use the command
> xi xtreg sales i.market it just creates the dummies
> >From: Seb Buechte <firstname.lastname@example.org>
> >Reply-To: email@example.com
> >To: firstname.lastname@example.org
> >Subject: Re: st: dropping dummies variables
> >Date: Tue, 30 Aug 2005 10:02:55 +0200
> >posting the same mail twice or even three times will not increase the
> >number of responses. As I pointed out earlier you may have to post
> >some of your code and some of you data, so someone who wants to can
> >actually help you.
> >Kind regards,
> >On 8/30/05, Federica Demaria <email@example.com> wrote:
> > > > Dear all,
> > > > I have a panel of 7 countries, identified by the variable id. When I
> >run the following regression
> > > > xi: reg y x1 x2 i.year i.id
> > > > as expected, Stata omits the first dummy of both the id and year sets
> >of dummies.
> > > > The strange thing is that it also drops another dummy variable of both
> >the mentioned sets of dummies, but it uses in the estimation the
> >corresponding country and year.
> > > > Could you please help me in understanding the reason behind this
> > > > thank you in advance
> > > > Federica
> > > > Department of Economics anad Statistics
> > > > University of Calabria
> > > >
> > > >
> > > >
> > > >
> Express yourself instantly with MSN Messenger! Download today - it's FREE!
> * 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/
- Seb F Buechte
- Stay tuned!
* For searches and help try: