Hi,
I have panel data comprising companies and employees. The companies have existing IDs, but I need to 1) create new 3 digit ID's for the companies starting from 101, 102, etc. and 2)IDs for employees where the first 3 digits are that of the company and then add a unique ID for the employee. Example:
Company_name Person_name Company_ID Person ID
xyz Richard 101 10101
xyz Ann 101 10102
How can I go about this?
Thanks
Related Posts with Creating ID group
Need Help: Propensity Score Matching Nonnegative integersHi guys, really need help if possible! I'm new to Stata and currently doing my dissertation/thesis …
How to get this kind summary statistics? Is there any sample code?Attached below. Thanks!! …
Creating variable based on conditions of two variables using matrixDear everyone I'm trying to create a variable based on matrix conditions of two other variable. I …
mixed command for fixed effect modelHello, I developed a random effect model as follows: mixed firmperformance_ln typeofstrategy firma…
Propensity Score Matching to estimate racial discriminationHello everyone, I am doing research on racial discrimination at the loan approval decisions, i.e. w…
Subscribe to:
Post Comments (Atom)
0 Response to Creating ID group
Post a Comment