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

st: Problem of using XI


From   "Ji-Tian Sheu" <jtsheu@mail.cgu.edu.tw>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Problem of using XI
Date   Thu, 14 Oct 2004 15:21:47 +0800

Hello, statalisters:
I have a variable (age) with 5 categories.
I would like to create age-category dummy.
I use the command, -xi-.
However, everytime, I type: xi: i.age
I obtained an error message: unrecognized command:  _Iage_   r(199);
However, after that, I type: sum *age*. I can still find that Stata has
created those dummies.
Anyone knows why?


Thank you very much

JT

The following is the log-file:

sum *age*

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
      id_age |    105117     68.8877    11.33323         35        197
        age |    105117    3.876614    1.069753          1          5

. xi: i.age
i.age             _Iage_1-5           (naturally coded; _Iage_1 omitted)
unrecognized command:  _Iage_
r(199);

. sum *age*

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
      id_age |    105117     68.8877    11.33323         35        197
         age |    105117    3.876614    1.069753          1          5
     _Iage_2 |    105117    .0845915    .2782741          0          1
     _Iage_3 |    105117    .1807985     .384853          0          1
     _Iage_4 |    105117    .3700733    .4828263          0          1
-------------+--------------------------------------------------------
     _Iage_5 |    105117    .3300513    .4702335          0          1

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index