My recode just does not work, anyone who can help me?


New Member
I have done this before and I just don't know what I am doing wrong. I need to create a dummy variable but it just refuses to recode the last numbers in to the second column.

So what i do is i write recode logmag (0/2.772589=1)(2.833213/5.010635=2),gen(logmag_new)

Then what it does it that it makes 3 columns and leaves 5.010635 for it self does not change it to 2. Can anyone help me, I need to figure this out but the book and the internet does not help me with this :/