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
using tabstat for mean annual procedure volumeGood morning, I have a dataset of companies (ik), case-number, year, procedure-type and quintiles. …
Automate file names using current dateHi All! I'm trying to create a local string reflecting the current date in the format, "YYYY-MM-DD"…
ANOVA test for clusteringHi, I want to check whether there is a need to cluster my results. I am doing a panel regression re…
Major change in coefficient when adding a squared variable in fixed effects model. Interpretation?When I use the xtreg command with fixed effects to look at the correlation between use of marijuana …
Calculations of quarterly stock holding data by shareholderDear Statalists, I am dealing with an unbalanced panel data for calculating the share holdings by a…
Subscribe to:
Post Comments (Atom)
0 Response to using regexm to pick up more then substring
Post a Comment