Hi all,
I would like to merge two datasets by identifier and date within range
dataset A:
accountnumber variableA date
dataset B:
accountnumber variableB startdate enddate
I would like to have a dataset like:
accountnumber variableA variableB date
where date would be between startdate and enddate
I looked at range join, but it seems like it would only accomplish merging using one variable? But I would like to have oaccountumber matched as well.
Thanks so much!
Related Posts with Merge identifier and date within range
Graph axes with same range?I'm a new user in Stata and want both of the axes in a scatter plot to span the same range without n…
Interpreting my results with variables for Age CategoriesI am running the following fixed effects regression xtreg recycling loginc logpopden age1120 age213…
'quietly' commandHi there Does anyone know if there is a way to get the 'quietly' command to apply to whole chunks o…
One specific year cannot be merged even though merging variables have the same values in master and using dataHi everyone, I am working with two panel datasets with which I am trying to perform a 1:1 merge. Ul…
Difference-in-Differences analysis where outcome variables are computed over rolling windowsI have cross-sectional data on firms between 2001 and 2017. The intervention occurred sometime durin…
Subscribe to:
Post Comments (Atom)
0 Response to Merge identifier and date within range
Post a Comment