I have a large clinical data set for 2017-2021 and have two questions; 1. How to calculate monthly hospital visits and mortality rates using sas eg for time series analysis procedure? I need the code please. 2.There are multiple entries per single Id at different time points,due to different reasons for visits. How to use do loop to create a variable "number of episode" per subject id? Would this factor be considered while calculating rates? I would highly appreciate your help since I don't have a programming background. Thanks in advance.
... View more