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
Creating continuous categories out of discrete observations.Hello I am trying to draw a graph where I want to create continuous categories our of the number of …
Summary statistics and export to .tex format to be used in LatexI have monthly data by date over past several years in 4 different columns. Can I produce a table si…
How to deal with outliers in panel data set?Dear all, I am working on panel data set (220 Observations (Countries,years)), and after implementin…
What's wrong with my code for merging two datasets?I am merging dataset #1 with the following structure: Code: * Example generated by -dataex-. To i…
Interpret results from xtabond2Dear all, I have the results from xtabond2 as follows: Code: Dynamic panel-data estimation, two-s…
Subscribe to:
Post Comments (Atom)
0 Response to Create a new string variable containing words of other string variables
Post a Comment