Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: AW:AW: an egen command


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: AW:AW: an egen command
Date   Tue, 16 Feb 2010 13:00:41 +0100

<> 

Preceded by

*************
su mpg, mean
*************

of course...


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 16. Februar 2010 12:58
An: [email protected]
Betreff: st: AW:AW: an egen command


<> 

" I am using egen to create new variables."



BTW, the call to -egen- would have looked something like this:


*************
egen byte var2 = cut(mpg),  /* 
*/ at(`r(min)' ,`r(mean)' ,`=r(max)+1') /* 
*/ icodes
*************



HTH
Martin





*
*   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/


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