Hello,
I am relatively new to STATA, with only a couple months experience and not much string experience.
I want to create a variable that stores 10 separate different words.
Ex:
animal:
cat
dog
lizard
bird
etc
I tried doing something like
gen animal = "cat" + " " + "dog"....
but that just gave me:
animal = cat dog lizard bird
and the results aren't all split up. I am doing this so that I can basically use this string value as the qualifier for an f statement that will do a command when the string is equal to one of the word values.
Thanks!
0 Response to Creating a string variable with multiple different word values
Post a Comment