[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: < and > operand in recode
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
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.
Try Live.com - your fast, personalized homepage with all the things you care about in one place.
* For searches and help try: