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
Write a stata program to control for sample weight?Dear friends, could you help me on writing a stata program to control for sample weight? Code: pro…
Normalizing GraphsHello All, I am attempting to normalize my graphs by the unconditional average. I run the followin…
URGENT !!!!!! Tobit postestimations using STATA14Hello Stata users, I came across this issue and I am trying to solve it, I am using a Tobit model, f…
Plotting a curve with trigonometric functionsI need to plot a curve as y = f(t), where t is the time, in the following way. y= 0 at t=-5 - first …
biprobit model for subgroupsHi, Is there any way to run a biprobit model for all variables in the model and then run the model f…
Subscribe to:
Post Comments (Atom)
0 Response to Create a new string variable containing words of other string variables
Post a Comment