Hello Imran, this video is well explained. I have a follow-up question: What if people chose more than one type of degree i.e. say the response includes high school and masters ... how do you code that? It's kind of like destring / split but not sure how to use them. Thanks for your help!
Aditi Grossman One need to design a survey to restrict the selection. For this example, Degree variable is Ordinal. So it would be implied if person who has Master degree also has bachelors degree, survey should restrict to pick one option. Even if you have multiple selection, you may code it to select the highest education level. Thanks!
thank you Imran!......the video tutorial is very well explained.....I am a new user of Stata.....so I do need a lot of tutorials.....but what if you have multiple variables (up to 200) that requires conversion from string to numeric....is there no single command for that?.....and also how do you generate identifiers for variables? thank you.
Hey, I have a question. I need to create new string variable from 2 string variables that I already have. This is my code: generate str CBSATYPE_Complete = "", after(CBSATYPE) replace CBSATYPE_Complete=CBSATYPE replace CBSATYPE_Complete= CBSATYPE2 if CBSATYPE = "" I am getting an error message for the last command "Type mismatch All the variables are sting Do you have any idea what is going on?
Thanks Imran!! You don't know how much you've helped me!!
Best regards.
This video is answer to my all questions, thank you so much... you saved my day :)
Thank you so much, Imran. Thats what I was looking for.
Excellent presentation. Thank you
you are very explicit thanks
Very helpful! Thank you!
Thank you. Well explained indeed.
Very useful! Thank you ....
thanks, this was great
Very helpful, thanks
Hello Imran, this video is well explained. I have a follow-up question: What if people chose more than one type of degree i.e. say the response includes high school and masters ... how do you code that?
It's kind of like destring / split but not sure how to use them. Thanks for your help!
Aditi Grossman One need to design a survey to restrict the selection. For this example, Degree variable is Ordinal. So it would be implied if person who has Master degree also has bachelors degree, survey should restrict to pick one option. Even if you have multiple selection, you may code it to select the highest education level. Thanks!
thank you Imran!......the video tutorial is very well explained.....I am a new user of Stata.....so I do need a lot of tutorials.....but what if you have multiple variables (up to 200) that requires conversion from string to numeric....is there no single command for that?.....and also how do you generate identifiers for variables? thank you.
+Ngozi Adeleye
Please see this video
ruclips.net/video/9yxWbdBxm_E/видео.html
Hey, I have a question. I need to create new string variable from 2 string variables that I already have. This is my code: generate str CBSATYPE_Complete = "", after(CBSATYPE)
replace CBSATYPE_Complete=CBSATYPE
replace CBSATYPE_Complete= CBSATYPE2 if CBSATYPE = "" I am getting an error message for the last command "Type mismatch
All the variables are sting
Do you have any idea what is going on?
Thank you!!!
Thank you
thanks !