Hello I am trying to create a variable that records if my variable explanation2013_2012 which creates an output of a string if a region has experienced any change. I am trying to use regexm to record if the words Split , Separated , Divide appear in that output , but when I use this code , it only picks up Split so basically my question is how to format it so it picks up on Split , Separated , or Divide appears in the output it creates. Thank you . My code is below , I need to list the constitent variable as well.
gen constitent = regexm(explanation2013_2012, "Split" "Separated" "Divide" )
. list if constitent == 1
Related Posts with using regexm to pick up more then substring
Penultimate variable?Hello
How can I get the name of the penultimate variable in my dataset? (from left to right) I was …
metaprop and metaregHi to everybody.
I've to do a META-ANALYSIS of Prevalence study.
The aim of the study is: prevalence…
cap file commandsHi all
I have a problem with the following code (I got it by a colleague...):
use "${logpath}\cou…
Panel dataset of Matched sample using rangejoinDear Statalisters,
I want to see the effect of a law which came into effect on 1975 on the lnpatent…
PercentilesHi everyone,
I have three variables - ProductCode, Year and PRODY. (Sample given below)
ProductC…
Subscribe to:
Post Comments (Atom)
0 Response to using regexm to pick up more then substring
Post a Comment