Dear Statalist:
I have a set of string variables that contain each a word related to symptoms of a disease or a specific symptom. Some examples:
Obs1: VAR1: Sore ; VAR2: throat ; VAR3: EMPTY
Obs2: VAR1: Sore ; VAR2: Cough; VAR3: throat
How can I create a new variable (VAR4: “Sore throat”) that registers two words of interest (Sore & throat) in this set of string variables?
I’ll appreciate any help!
Alejandra
Related Posts with Create a new string variable containing words of other string variables
lrtestHello, I have three variables and want to see if it is worth including all of them in the model or …
sttocc matching for both analysis time and calendar time - nested case control studyHi folks, Apologies in advance for the rookie question! I am designing a nested case-control study …
output all unlabeled values of variables with value labelHi! How may I select all unlabeled values of variables which - except for those values - have a val…
Percentage change from different baseline years in panel dataDear All, I am working with a dataset that looks like this: Code: * Example generated by -dataex-…
ITSA - segmented regression in StataHi all and Ariel Linden I was going through the UCLA page on how to do peicewise regression in Stat…
Subscribe to:
Post Comments (Atom)
0 Response to Create a new string variable containing words of other string variables
Post a Comment