I have a string variable 'businessincome' such as:
Now, I want to replace "11" with the numeric (not label) value 1, "4" with 2, "6" with 3 and "8" with 4, "10" with 5, and "12" as missing.
Thanks
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str68 businessincome "" "" "" "" "" "" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" "10" end
Thanks

Comment