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
Multilevel analysis for longitudinal effectsDear Community, I am working with the European Working Conditions Survey and I would like to calcul…
New v17 features in Mata?This thread initiated recently by Joseph Coveney calls attention to one of the new date functions in…
Show estimates for identical variables next to each other (e.g. via esttab)I have several models with (three-way) interactions terms, some of them are manually coded. I am sea…
For-loops are killing me!I created a postfile and now trying to display the results from that postfile. There are two variabl…
Comparing the seasonal naive method with Holt-Winters' additive seasonal exp. smoothing method using ts cross-validationHello, I am having trouble figuring out the correct commands when I try to compare the seasonal nai…
Subscribe to:
Post Comments (Atom)
0 Response to Creating ID group
Post a Comment