BookmarkSubscribeRSS Feed
a_matharu
Calcite | Level 5

I have a dataset with Medical appointments taken from the Kaggle website. 

The dataset I am using contains 110527 medical appointments and their 14 associated variables ( PatientId, AppointmentID, Gender, ScheduledDay, AppointmentDay, Age, Neighbourhood, Scholarship, Hypertension, Diabetes, Alcoholism, Handcap, SMS_received, No-show ).  The original analysis was done using Python and it states that there is no duplicate value in the data.

 

I am trying to use SAS to find duplicate entries in the dataset and confirm the claim in the original analysis i.e there is no duplicate entry because this is appointment data that may have multiple entries for the same individual but on different dates. 

 

I tried using the Proc Sort procedure 


proc sort data=eda_project1 nodupkey dupeout=dupes;
by patientid;
run;

but there are so many entries sorted out in dupes. Can someone guide me on how I can confirm if there are any duplicates or not? 

1 REPLY 1

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 306 views
  • 0 likes
  • 2 in conversation