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

RE: st: how to make xi dummies inherit labels


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: how to make xi dummies inherit labels
Date   Thu, 3 Oct 2002 09:33:29 +0100

John Hendrickx

> -desmat- will do this. Try -ssc describe desmat-

I tried -desmat- after my posting. I couldn't
see that it did quite this.

Example:

----------------------------------------------------------------------
-------------------------------------
       log:  C:\Stata7\desmat.log
  log type:  text
 opened on:   3 Oct 2002, 09:30:21

. u auto
(1978 Automobile Data)

. desmat : regress mpg foreign
----------------------------------------------------------------------
---------
   regress
----------------------------------------------------------------------
---------
< snip >
----------------------------------------------------------------------
---------
nr Effect                                                     Coeff
s.e.
----------------------------------------------------------------------
---------
   foreign
1    Foreign                                                  4.946**
1.362
2  _cons                                                     19.827**
0.743
----------------------------------------------------------------------
---------
*  p < .05
** p < .01

. d _x_1

              storage  display     value
variable name   type   format      label      variable label
----------------------------------------------------------------------
---------
_x_1            byte   %8.0g                  foreign==1


. tab foreign

   Car type |      Freq.     Percent        Cum.
------------+-----------------------------------
   Domestic |         52       70.27       70.27
    Foreign |         22       29.73      100.00
------------+-----------------------------------
      Total |         74      100.00


That is, the variables created do not inherit value labels,
which I understood be what Roger wanted.

Nick
[email protected]

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