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

st: RE: -encode- help..

From   "Nick Cox" <>
To   <>
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


moleps islon

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

*   For searches and help try:

© Copyright 1996–2019 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index