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
Issues using PPML Fixed Effects Gravity ModelHello all, I am a masters student using the gravity model to try and understand trade between the f…
Fmolscan PANEL FMOLS be used with I(1) dependent variable and i have 4 independent variables one of them …
Formatting a 3-way Stata table like a SAS tableHi Statalist, I would like to have my 3-way Stata table here: Array Be formatted in a similar way …
Issue for Stata CodeI write the command "lp" for local projection method in Stata 16, however, it shows "lp" is unrecogn…
Sampling without replacementA first question. Is there a way to sample without replacement in Stata? I would like a random ident…
Subscribe to:
Post Comments (Atom)
0 Response to using regexm to pick up more then substring
Post a Comment