Hello all,
I have two datasets: one has a column of geographic identifiers and one has a column of geographic identifiers and a column of dates.
I am trying to create a dataset that will append every date from the second dataset to the corresponding row (with a matching geographic identifier) in the first dataset. There are multiple dates in the second dataset that correspond to each geographic identifier in the first dataset. I would like to create a unique row for each geographic identifier -- date combination. The final product should look something like this:
GEOID --- DATE
1 ............. Date 1
1 ............. Date 2
1 ............. Date 3
I am not sure how to do this. Does somebody have any idea?
Thank you!
Related Posts with Merging Data
GSEM mediation: Limitations in assessing model fitGreetings, I'm running Stata 15.1 on OSX and working with cross-sectional survey data. I'm trying t…
Prediction graphDear community! I have a task to produce a graph of three realistic scenarios for health spending (i…
Storing and accessing output of multiple estimation commands within programI've defined a program that generates random data and calls two estimation commands: reg and ppml. I…
How to merge two panel data sets?Dear Statalist members, I want to merge two panel data sets. One contains information regarding 200…
Setting up dataset for rds_networkHi, I need to create the respondent-driven sampling variables identifying recruits from two variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Merging Data
Post a Comment