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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/