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
[Help] Marginal effect on StataHi. My question is from Stata (15.1), but also requires some statistical knowledge, which is why I a…
PCA with weights?Dear All, I was wondering if weights should be used with the PCA command when constructing an index …
Two-part modeling: combination of LCA and LPAHi Statalists, I was trying to do a two-part modeling for my dataset, in which observed vars are ze…
Renaming VariablesI am using STATA 15. I have a large data set with multiple columns and rows. I am interested in two …
How to recode a trinary variable into a binaryHello. I'm new to Stata, and I have a quick question. I have a variable "size" in my data base : 1 i…
Subscribe to:
Post Comments (Atom)
0 Response to using -encode- with multiple string variables
Post a Comment