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

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


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: recode - (1) label and (2) error message r(110)
Date   Tue, 2 Dec 2003 21:40:58 -0000

Grote, Veit Dr.
 
> I am using Stata 8.2 (up to date) and have two problems 
> with - recode -:
> 
> 1. Can I somehow label within - recode - as I have tried below:
> recode alter_j (min/1=1 "0-1 Jahr") (1/4=2 ">1-4 Jahre") 
> (4/10=3 ">4-10 Jahre") (10/16=4 ">10-16 Jahre") ///
> gen(alter_cat2) label(alter_cat2)

I'd try it. But note that your intervals overlap, e.g. 1/4
and 4/10. That's not illegal, but I doubt it's what you 
want. 

> 2. Why do I get the error code "r(110)" after the following 
> - recode -. I have a very regular do-file with -generate-, 
> - replace- and -recode- before this error appears:
> 
> recode alter_m min/3=1 3/6=2 6/9=3 9/12=4 12/18=5 18/24=6, 
> gen(alter_cat) 
> __000000 already defined
> r(110);

I get 

"alter_cat already defined"

if that's the case. Same comment about the intervals.

I'm using -recode- of 16 June. 
 
Nick 
n.j.cox@durham.ac.uk 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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