@sks521 wrote:
Hi folks,
I have a data set on emergency healthcare use by children so one id can have multiple admission dates to emergency wards. My problem is same id with same admission date more than once.
So, I want to find out duplicates based on two variables; 'id' and 'admissiondate' and create a data set without duplicates but before I create a data set without duplicates I need to know how many duplicate entries I have in the data set for verification purposes.
Thanks
S
This will create a data set that has the id and admiisiondate with a count of how many duplicates when there are duplicates.
proc freq data=have noprint;
tables id*admissiondate /out=work.counts (drop=percent where=(count>1)) ;
run;
... View more