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?
How to show countriesHello, I'm running a mixed effect model using this command Code: xi: mixed reconsumption CL PR i…
Drawing random sample multiple times from a large data setHi, I would like to know how can I draw a smaller sample (of say 20000) from an already existing lar…
Newey Regression for panel dataHello, I wanted to know whether the newey-west command can be used for panel data or not? If no, th…
Help with displaying frequencies for a variable with multiple responsesHey Everyone, I am wondering if there is a way to get Stata to count the amount of times an answer …
Help---convert numbers to time & generate a "date time" variableDear all, It's a pleasure to exchange good ideas with you through the forum. It's really helpful! …
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