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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.