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
Calculating number of households within a distance of 1KM.My deep dive for a clue as to how to calculate the number of households within a radius of 1KM isn't…
Graph CombineI would like to combine about 200 graphs in one pdf so that each graph is displayed below each other…
wrapping up using foreach vHi using the below loop, I could nicely generate a maximum value of my variables of interest. I was …
Fiscal year formatHi all, I hope you can help me. I have a variable fiscalyear with different format within one varia…
Rolling window with xtmixedI’m using Stata 15.0 to analyse a quarterly panel data. I am using xtmixed command to perform a rand…
Subscribe to:
Post Comments (Atom)
0 Response to using -encode- with multiple string variables
Post a Comment