Statalist


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

st: an Egen command


From   Jet <[email protected]>
To   [email protected]
Subject   st: an Egen command
Date   Tue, 16 Feb 2010 04:01:44 -0500

Hi, I am using egen to create new variables. Basically, I want to recode a
continuous variable into two groups, below or above the mean. I tried this
command: egen var2=cut(var), at (0, mean, maximum). However, Stata turned
out the maximum to be the mean. Any suggestion? thanks.

Jet

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