Hello,
I have the following data below:
I want to merge the two data sets based on whether the employment_date variable falls between the start and end dates. The state, occupation, and transportation variables must match as well. I would appreciate any assistance.
Thanks,
Anoush K.
I have the following data below:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(start end group) str25 state double(occupation transportation) 120 165 1 "CA" 1 0 165 170 1 "CA" 1 0 200 236 2 "NH" 3 1 236 242 2 "NH" 3 1 end format %tq start format %tq end
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input double(employment_date) str25 state double(occupation transportation) 126 "CA" 1 0 231 "NH" 3 1 240 "NH" 3 1 212 “CT” 2 0 end format %tq employment_date
Thanks,
Anoush K.
Comment