I think this is probably a fairly basic question, but I am just learning SAS so nothing is intuitive.
I am trying to find the average obserservations per day for my dataset. The date is listed as DOI in yyyy-mm-dd format. Each observation has a unique id variable ID.
I am just trying to make a descriptive report to say what the average number of observations per day was in the time period of my dataset, what the max and min number of observations per day were, but I can't find an easy solution. Here is what I tried:
proc means data=have
VAR ID; *somehow I want to indicate NUMBER of unique IDs rather than the ID itself\;
by doi; *I do not want the average for each individual date, but the average
observations per day\;
run;
Obviously this didn't work, as it treated each ID as a number rather than a single observation, but I am unsure how to indicate that. Thank you so much! I assume this is quite simple, but please let me know if I should provide extra clarification.