Dear listers
I have a dataset of many dates all named
date_acl*, where the * can be between 1-N
and
H_scan_date*, where the * can be between 1-N
Now, i what to figure out if pr ID the larges scan_date is after the largest var_date
for exemple for id 7 er H_Scan_date4 later in time than date_acl5, keeping in mind that in this data set i have omitted almost all numbers for the *
and i want to compare the latest (e.g. the highest number) date for both H_Scan_date and date_acl and the numbers may vary from 1 to 15 and are not necessarily equal.
So it could be H_scan_date4 and date_acl10.
hope that made sense.
Lars
I have a dataset of many dates all named
date_acl*, where the * can be between 1-N
and
H_scan_date*, where the * can be between 1-N
Now, i what to figure out if pr ID the larges scan_date is after the largest var_date
for exemple for id 7 er H_Scan_date4 later in time than date_acl5, keeping in mind that in this data set i have omitted almost all numbers for the *
and i want to compare the latest (e.g. the highest number) date for both H_Scan_date and date_acl and the numbers may vary from 1 to 15 and are not necessarily equal.
So it could be H_scan_date4 and date_acl10.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float id double(date_acl1 H_Scan_date1 date_acl5 H_Scan_date4) 1 19698 . . . 2 20066 . . . 3 17749 . 18890 . 4 18568 . 19429 . 5 18974 . . . 6 17664 . 19142 . 7 17805 18169.400648148097 18932 19673.500787037003 8 19481 18345.712442129603 . . 9 17658 17605.401840277802 . . 10 17798 . 19264 . 11 20199 . . . 12 19542 . . . 13 19401 . . . 14 17784 . . . 15 18977 . . . end format %td date_acl1 format %tdnn/dd/CCYY H_Scan_date1 format %td date_acl5 format %tdnn/dd/CCYY H_Scan_date4
Lars
Comment