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 select a subset of data from a full databaseDear all, If I have a database on STATA with multiple rows for each patient (due to multiple outpat…
Differences between "icc" and "estat icc" estimates?Dear stata users I am trying to estimate the intra-class correlation of measures performed by sever…
r value - Individual variance for each independent variable in linear regressionHi there, Would you mind sharing your thoughts on how to calculate/obtain individual variance accoun…
Assert – why is false returned for values that appear equal after matrix conversion? Code: version 15 set obs 3 local a = 3.1415927 matrix A = (1\2\3.1415927) matrix B = A[3,1] sv…
What is the relationship between sample size and Type I error?Dear clever statistics people, I am writing a paper using a RD-design on three different data sets.…
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