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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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