Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: AW: RE: recode - (1) label and (2) error message r(110)

From   "Nick Cox" <>
To   <>
Subject   st: RE: AW: RE: recode - (1) label and (2) error message r(110)
Date   Wed, 3 Dec 2003 15:38:17 -0000

Grote, Veit Dr.
> The "overlapping" is exactly what I want. This is 
> epsecially usefull when your recoded variable is 
> continuous. Thus I do not have to type, for instance - 
> recode varname min/1=1 1.0001/2=2 - or similar (which might 
> be dangerous). 

I hadn't picked up that your variable was continuous. 

The original intent of -recode-, as I understand it, 
was to recode categorical variables, but you've 
realised that it can be applied to continuous variables
as well. 

If this alone were the problem, I would just use -ceil()- 
but you want a coarser division at higher ages. 

> However, my problems still exist even after changing the recode to
> recode alter_m min/3=1 4/6=2 7/9=3 10/12=4 13/18=5 19/24=6, 
> gen(alter_cat) 
> I always get the error 
> "__000000 already defined
> r(110);"
> This line does not work, even after restarting or leaving 
> the - generate - part away. This leaves a very straight 
> forward recode with a strange error code.

-set trace on- and send a log of the trace to tech-support. 

*   For searches and help try:

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