Hello.
I have a string variable which has multiple response such as "1,3", "6,96" etc. Now I want to create a dummy variable for each response. I have tried strops but it has problems for two or three-digit responses sucha s for "96" it gives values in 6 , 9 and 96. How to solve it?
clear input str4 cards_hh "3" "1" "2" "1,2" "1" "4,96" "1,3" "96" "3" "1,3" "6,96" "2" "88" "1" "1,2,3,88" "4,96" "1" "2,3"
I have a string variable which has multiple response such as "1,3", "6,96" etc. Now I want to create a dummy variable for each response. I have tried strops but it has problems for two or three-digit responses sucha s for "96" it gives values in 6 , 9 and 96. How to solve it?
clear input str4 cards_hh "3" "1" "2" "1,2" "1" "4,96" "1,3" "96" "3" "1,3" "6,96" "2" "88" "1" "1,2,3,88" "4,96" "1" "2,3"
Comment