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
Chow test in panel dataHi all, My estimated equation takes form of: ln(I)=B1ln(w1)+B2ln(w2)+B3ln(w3)+(control variables)+e…
Impostare parametri inizialiGood morning I open this thread to ask if in Stata it is possible to create initial parameters (to c…
using a separate time variable and am/pm indicator variable to generate a military time variableHi, I briefly dug into this and could not find an answer. I have 3 variables: a date variable, a ti…
quasi-panel made out of cross-sectional dataHi all, Does anybody know how to create a quasi-panel data out of the cross-sectional data. I have a…
fixed effects specification: dummies (LSDV) vs within estimatorHello everyone, I have a question on the various specifications of a fixed effect model. I always …
Subscribe to:
Post Comments (Atom)
0 Response to using -encode- with multiple string variables
Post a Comment