Dear Experts ,
I am creating a Statistics summary for the visits ,
eg:- Visit 1 - N SD Mean Median Q1 Q3 MIn Max
visit 2 -N SD Mean Median Q1 Q3 Min MAx
I can create taking each visits and find the statistics using Proc means , but the problem is I need a dynamic code that find if any other visits also occurs in future and then the respective statistics
@ambadi007 wrote:
Dear Experts ,
I am creating a Statistics summary for the visits ,
eg:- Visit 1 - N SD Mean Median Q1 Q3 MIn Max
visit 2 -N SD Mean Median Q1 Q3 Min MAx
I can create taking each visits and find the statistics using Proc means , but the problem is I need a dynamic code that find if any other visits also occurs in future and then the respective statistics
PROC MEANS will figure out how many visits are present in your data set, and then compute the statistics for each visit in the data set. You need to use the CLASS statement. https://documentation.sas.com/?docsetId=proc&docsetVersion=9.4&docsetTarget=p0gpxoqczfzcyln13ma53kpq...
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.