MrsEcon
01-30-2012, 07:42 AM
Hello, i have a problem i know how to solve it in excel, but i wonder if i could do the same in stata because i want to have all the commands in a dofile.
I have a variable with this kind of values: 69/4600-5000 or 69/4600 or 69(70)/4600
and an another with this type: 1140-1000
And i want to trasform the one into this: 69, and if has a () then create another column with 70 in.
(So i want to keep only the part before / and spread the value in the parethesis into another variable )
And the other into two variable the one: 1140 and the other 1000.
If anyone could help me i would be very thankful!
I have a variable with this kind of values: 69/4600-5000 or 69/4600 or 69(70)/4600
and an another with this type: 1140-1000
And i want to trasform the one into this: 69, and if has a () then create another column with 70 in.
(So i want to keep only the part before / and spread the value in the parethesis into another variable )
And the other into two variable the one: 1140 and the other 1000.
If anyone could help me i would be very thankful!