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
split (Chinese) addressDear All, I have this data on addresses (x variable): Code: * Example generated by -dataex-. To ins…
dynamic panel threshold model and endogeneityDear all, i hope you are doing good you and your families i'm working on my paper and i will be ap…
Merging Two VariablesHello, I am lost and could need some help! I have one variable, lets call it X, which includes livi…
Question about comparing the results of OLS regression and Poisson regressionDear all, I have a rather basic question and apologize in advance because of it. I am using a pane…
Dropping observationsHi I am working on a data of transplant patients and some of the patients have multiple transplants …
Subscribe to:
Post Comments (Atom)
0 Response to Searching one dataset for a variable within another data set
Post a Comment