Hello Mr. I have a variable with 10 different values and I need, from each one these values, to create a table that contains data from another variable. Could you guide me in defining this procedure? Thank you very much!
Dear Tommy, I would suppose a substring command from the egen package would help. Type substr(varname,1,x) to get the first x letters. Warm regards, Bram
Hello Mr. I have a variable with 10 different values and I need, from each one these values, to create a table that contains data from another variable. Could you guide me in defining this procedure? Thank you very much!
Thank you. But is I have a number of countries in a variable and I want to shorten the country names how would I go about doing this?
Dear Tommy,
I would suppose a substring command from the egen package would help.
Type substr(varname,1,x) to get the first x letters.
Warm regards,
Bram
Thanks
Glad it was of help :)