Hello,
I want to calculate the number of id per date or year
data have;input date id $;datalines;
1996 51996 61996 71997 11998 51998 101999 11run;
data want;input date nbid $;datalines;
1996 31997 11998 21999 1run;
proc freq data = have noprint; tables date / out=want(drop = percent); run;
View solution in original post
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Register now!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!