I have two .dta files. The first contains three variables:
city - city name
county - the corresponding county name
zips - every zip code corresponding to the given city in a string format (for example: "92508 92503 92501 92505 92504 92507 92506 92502 92513 92514 92516 92517 92521 92522")
The second file simply contains one variable: zip_code (for example: "92505")
My aim is to create a variable in the second .dta file for county using the first .dta file. I can't think of a way to do so. Any advice?
**Note: I cannot use dataex for this post because the "data exceeds max linesize".
Related Posts with Searching one dataset for a variable within another data set
Run do files inside a do fileHello, I have different do files in a folder (let's call dofile1.do, dofile2.do and dofile3.do). I …
Binsreg questionHello, I am trying to understand how binscatter plots work and I have a somewhat general question i…
loops to import excel file and mergeHi everyone, I have a folder that contains 26 individual .xlsx files, each named with the name of a…
what's wrong with the command "distinct"? Code: * Example generated by -dataex-. For more info, type help dataex clear input int a float(b c)…
Non-Linear Mixed Effects ModelHello all, I am attempting to fit a mixed effects model to some longitudinal secondary data. The va…
Subscribe to:
Post Comments (Atom)
0 Response to Searching one dataset for a variable within another data set
Post a Comment