hi all,
Stata 8.2,
i wanted to recode a variable, which consisted of continuous number, something to the effect of:
<=1 coded 1 (<= i.e. meaning less than or equal to)
>1 to <=2 coded 2
>2 to <= 5 coded 3
>5 to <=10 coded 4
>10 coded 5
when i tried to use the equality operands (i.e. < or > in my recode commands, it gives an error message 'unknown el <2 in rule') so after consulting my manual on [R] recode, i managed by recoding:
0.0001/1 = 1
1.0001/2 = 2
.
.
10/1000 = 5
etc
being careful to make sure that the parameters included all the values.
i would appreciate if someone could confirm that equality sign cannot be used in recode. would appreciate it too if anyone can point out an alternative/better way to accomplish the recode.
many thanks,
bw
_________________________________________________________________
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
http://www.live.com/getstarted
*
* 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/