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
How to generate a dummy variable in the dataset as attached in this post?I want to generate a dummy variable. When the name for the position of "GS" is the same for the posi…
error for displaying a large numberHello, To merge, I needed to make a specific identifier for each row. As you can see below, for eac…
Data type/precision -import dbf-I'd like advice on double vs. float precision on some data values obtained via import of a dbf file.…
Pseudo out-of-sample forecast using loopsHello, I have tried running a code given to me to predict a pseudo out-of-sample forecast using a lo…
stripplot: Getting rid of "graphs by ___ " note in lower leftI'm using the latest version stripplot (ran ssc install stripplot today) with both the over and by o…
Subscribe to:
Post Comments (Atom)
0 Response to Searching one dataset for a variable within another data set
Post a Comment