[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: recode - (1) label and (2) error message r(110)
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
> 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,
> __000000 already defined
"alter_cat already defined"
if that's the case. Same comment about the intervals.
I'm using -recode- of 16 June.
* For searches and help try: