Statalist


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

st: AW: AW:AW: an egen command


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Martin Weiss
Gesendet: Dienstag, 16. Februar 2010 12:58
An: statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index