BookmarkSubscribeRSS Feed
ambadi007
Quartz | Level 8

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 

1 REPLY 1
PaigeMiller
Diamond | Level 26

@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...

--
Paige Miller

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 592 views
  • 0 likes
  • 2 in conversation