Hello,
I know this might seems very simple to some.
1. How do I generate a report on proportion of patients with any physician visit.
2. How do I report the distribution of the number of physician visits per patient.
There are multiple records per patient
Here is my dummy data
data want;
set have;
input patientid phyvisit$;
datalines;
10 xyz
10 abc
10 ijk
11 abc
11 edc
12 abc
12 adc
12 zxc
;
run;
Thanks
What is the report supposed to look like?
When you say proportion there should be some sort of numerator and denominator involved. What are they? Count of Patients? Count of Doctors? Count of Visits? Count of unique patients (each patient only counted one time)?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.