Hey,
I am relatively new with Stata and I have some problems using the regexm command.
In the following, there is an excerpt of my string variable, where I want to search for the following terms and generate a new variable which equals to 1 if the following terms are included?
"CEO" or "Chief Executive Officer" but not "CEO of" or "Chief Executive Officer of".
Thanks in advance!
I am relatively new with Stata and I have some problems using the regexm command.
In the following, there is an excerpt of my string variable, where I want to search for the following terms and generate a new variable which equals to 1 if the following terms are included?
"CEO" or "Chief Executive Officer" but not "CEO of" or "Chief Executive Officer of".
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str250 title "Chairman & CEO" "Vice Chairman" "Vice President of Commercial Development" "Chief Financial Officer, Vice President and Treasurer" "Group Vice President of Structures & Systems Segment" "Chairman & CEO" "Vice Chairman" "Vice President of Commercial Development" "Chief Financial Officer, Vice President and Treasurer" "Group Vice President of Structures & Systems Segment" "Chairman & CEO" "Vice Chairman" "Chief Financial Officer, Vice President and Treasurer" "Group Vice President of Structures & Systems Segment" "VP, General Counsel & Secretary" "CEO of Power Systems" "Vice Chairman" "Chief Financial Officer, Vice President and Treasurer" "Group Vice President of Structures & Systems Segment" "VP, General Counsel & Secretary" end

Comment