Dear members,
I want to generate variable X if spending < 300; variable Y if spending is between 300 and 500 and variable Z if spending is more than 500. Which commands can I use for them?
In fact, I used traditional gen function with the if command but it does not work
Thanks beforehand
I want to generate variable X if spending < 300; variable Y if spending is between 300 and 500 and variable Z if spending is more than 500. Which commands can I use for them?
In fact, I used traditional gen function with the if command but it does not work
Thanks beforehand
Comment