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
Placing text/label above and below marker in a coefplot generated plotHi everyone, I am trying to place labels both above and below markers in a plot generated by coefpl…
Log File with Time StampI found code to have the year, month and day in the name of the log file. How can I modify it to hav…
Oaxaca decomposition interpretation - pooled method and reference categoryHello, I'm using the Blinder-Oaxaca decomposition to study the wage differentials between males and…
Identifying duplicates in Dyad Data (within branch and village)Hi everyone, I understand this has been discussed before and I have read contributions on this topi…
Survival Analysis and Longidutinal DataI have a database with longitudinal data with 55.000 observations that looks like this: Array I wo…
Subscribe to:
Post Comments (Atom)
0 Response to using regexm to pick up more then substring
Post a Comment