Statalist


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

st: RE: -encode- help..


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: -encode- help..
Date   Wed, 19 Nov 2008 21:27:33 -0000

You can do it, but not I think directly. Here is one way: 

sysuse auto
egen nmake = group(make) 
replace nmake = nmake - 1 
labmask nmake, values(make) 

where -labmask- should be located using -findit-. 

But I can't see that zero-start has any real advantages. Can you name
any? 

Nick 
[email protected] 

moleps islon

is it possible, somehow, to
specify stata to start encoding with tha value 0 instead of 1 ?


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