Hello everyone,
I have 2 datasets that needed to be merged. Dataset A has unique IDs with multiple transactions for each ID. Dataset B also has unique IDs with multiple action of rating score at different time. I want to merge A and B using unique IDs. However it goes under a condition that date for each transactions must fall into the date range of rating action. For example, stock C got transactions on 01/01/2019 and 06/01/2019. It also got 2 actions of rating score on 06/01/2018 and 02/28/2019. So when merging stock C on transaction 01/01/2019 would get score that rated on 06/01/2018; transactions on 06/01/2019 would get score that rated on 02/28/2019.
Does anyone know how to approach this problem? Thank you so much!!!
Related Posts with Merge based on time-range condition
spectral normalization matrixHi all, I've made a matrix based on the similarity of organizations in forums (Euclidean distance):…
Margins at() following cmxtmixlogit / cmclogit?Hi all, long time reader first time poster here. I am using StataSE 16.1 on MacOS 11.2.3. I'm analyz…
Dividing variables across time periodsHi Statalister, I have a problem in which I cannot solve, I tried a number of things and I have tri…
Fixed effects model - comparing the coefficients of two different regressionsDear All, I used a fixed effect regression model through the following equations to evaluate the im…
Dummy variable based on 3 continuous year panel dataHi, I want to generate dummy2=1 if dummy1 is continuous (equal 1) for the 3 next years period. Any…
Subscribe to:
Post Comments (Atom)
0 Response to Merge based on time-range condition
Post a Comment