Dear Statalists,
I have a dataset including six variables: ID PersonName ExcelPersonID CompanyName Biographies NewCompanyName1.
Variable NewCompanyName1 contains information about the company that the person in PersonName is currently working for.
Variable Biographies summarize information about the person's work experience (in PersonName) including time spent with the company in NewCompanyName1 and several others.
I would like to create a new variable which is the working period of the person (in PersonName) at the company contained in NewCompanyName1.
For example:
PersonName: Stock, Kevin (Prior)
NewCompanyName1: Michael Hill International Limited
Biographies: Mr. Kevin Stock, B Arts has been Retail General Manager of Australia at Michael Hill International Limited since 2003. Mr. Stock is responsible for the overall performance of the Australasian retail division. He moved from the United States in 1990. He started with Michael Hill in 1995 as a store management trainee in the first Melbourne store-Eastland. After managing stores for 5 years, he became a Regional Manager for 2 years in Victoria.
The new variable will be: "since 2003"
I have searched online but I could not find out any example like my task.
Any assistance is greatly appreciated.
Kh Trinh
Related Posts with Can I extract few letters from a string variable based on a conditional is another string variable?
Hat off to Clyde's remarkable milestone (20,000 contributions)In this gloomy era, I'm happy to celebrate this new milestone achieved by Clyde on this forum. His m…
xtabond2: Help on economic growth model specificationGood day everyone, Currently I'm making a thesis to see how political stability affect economic gro…
Small N large T, independent lagged dependent with no lagSir I want to estimate a panel strongly balanced dataset where T=260 and N =30 My independent variab…
What's the relationship between -rcsgen- and -stpm2-?Dear Stata specialists, I have seen the description of -rcsgen- on Paul Lambert's blog, stating tha…
ESS- computing centred human value scoresHi, I am currently trying to compute the human value index on stata, using the ESS from 2018. I was…
Subscribe to:
Post Comments (Atom)
0 Response to Can I extract few letters from a string variable based on a conditional is another string variable?
Post a Comment