Hello everyone.
I have a Panel dataset containing staff information based on performance report dates. The characteristics of the staff can change over time and we track this in this dataset. For example a staff can start in the company as a intern an then became a staff member and then became a manager. I need to create a variable that represents the characteristic of the staff at the first performance report in 2015. In other words, for example, I need to know what was the role of the staff at the first report in 2015. Please see below a sample of my data.
Thank you in advance,
Marvin
I have a Panel dataset containing staff information based on performance report dates. The characteristics of the staff can change over time and we track this in this dataset. For example a staff can start in the company as a intern an then became a staff member and then became a manager. I need to create a variable that represents the characteristic of the staff at the first performance report in 2015. In other words, for example, I need to know what was the role of the staff at the first report in 2015. Please see below a sample of my data.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte ID str7 Idchange int Iddate str11(Role WhatIWant) 1 "2266/12" 19241 "INTERN" "MANAGER" 1 "911/14" 19794 "ASSISTANT" "MANAGER" 1 "1031/15" 20166 "MANAGER" "MANAGER" 1 "4869/15" 20429 "ASSISTANT" "MANAGER" 2 "4869/16" 20127 "SUPERVISOR " "SUPERVISOR " 2 "4869/17" 20431 "ASSISTANT" "SUPERVISOR " end format %tddd-Mon-YY Iddate
Thank you in advance,
Marvin

Comment