I use Stata 14 on Windows.
I have a data set of 30,000 observations with multiple observations (different dates) on individuals identified with three string variables firstname middlename lastname of the following form
John Q Smith
John Q Smith
James Pearson Smith
James Pearson Smith
etc
Some individuals enter the data upwards of 200 times. I want to create a unique identifier for each individual, but the -encode command allows only a single variable. Any advice on how to create an identifier for each person?
Related Posts with using -encode- with multiple string variables
DiD with back-to-back treatmentsThis post has been deleted. …
Seeking advice on how to address the correlations of error terms across simultaneous equationsHello statalist users, I was trying to find some advice on addressing the correlations of error ter…
Line graph for categorical dataHi, I have a problem of translating my categorical data into a line graph showing change over time. …
How to suppress categorical outputs in proportional hazard modelHi everyone, I have a question about how to output part of the regression results for main IVs in t…
Monthly excess returnHello! fundnr year mktrf smb hml mom mf_u_mnret 1 2015 .59 -2.97 1.85 -7.37 .0218749 1 2012 -.85 -.…
Subscribe to:
Post Comments (Atom)
0 Response to using -encode- with multiple string variables
Post a Comment