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
Adjusting for missing observations in a weighted standardized indexHi, I'm working with individual-level pooled cross-sectional National Health Interview Survey (NHIS…
Crossed effects models with covariatesHi, I'm relatively new to STATA, and am struggling to understand a particular code that explains ho…
Place labels on boxplots with asyvars optionI generate a hbox with Code: clear set obs `=9 * 2 * 5' set seed 2803 gen y = rnormal() egen x1…
Multilevel multinomial model - gsem slows down considerably after adding random slopeDear statalisters, I would very much appreciate your help with my analysis. Dataset: 1500 responde…
CommandsHello, I am trying to analyse an RCT experiment and I want too see the difference in means between c…
Subscribe to:
Post Comments (Atom)
0 Response to Create a new string variable containing words of other string variables
Post a Comment