BookmarkSubscribeRSS Feed
shaher
Fluorite | Level 6

About " examine extreme observations to identify potential outliers" 

 

Is this code, right? 

 

proc univariate data=dt1;
var AGE BMI CD4ct HIVrnaLev FMD CRP HDLC;
ID AGE BMI CD4ct HIVrnaLev FMD CRP HDLC;
run;

 

 

and I don't know how to find "  if normality if not violated, generate mean (SD). if normality is violated, generate median (IQR) "

 

Capture.PNG

1 REPLY 1
ballardw
Super User

@shaher wrote:

About " examine extreme observations to identify potential outliers" 

 

Is this code, right? 

 

proc univariate data=dt1;
var AGE BMI CD4ct HIVrnaLev FMD CRP HDLC;
ID AGE BMI CD4ct HIVrnaLev FMD CRP HDLC;
run;

 

 

and I don't know how to find "  if normality if not violated, generate mean (SD). if normality is violated, generate median (IQR) "

 

Capture.PNG


By adding NORMAL to the proc statement the procedure will display some normatlity test statistics.

IQR is one of the default statistics.

 

Then USE or report the ones you want based on the normality assessment you make.

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
  • 756 views
  • 1 like
  • 2 in conversation