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?
Include appointmentday in your BY statement.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.