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
Solving nonlinear function in StataHi everyone, I'm trying to generate a variable (r) using an implicit expression. The equation is: (…
Interpretation on the Granger CausalityArray I am trying to characterise temporal sequence of influences in a VAR and wanted to use the Gra…
VAR Model Lag Length Code: * Example generated by -dataex-. To install: ssc install dataex clear input float(Dlrgdp Dlo…
mlabel in scatter plotDear Stata users, I'm trying to produce a graph with both scatter and lfit commands. I would like t…
generate separate group variables instead of categorical variable. Need your help!Hi everyone, I have a logistic model to test the effect of different individual characteristics on …
Subscribe to:
Post Comments (Atom)
0 Response to Creating ID group
Post a Comment