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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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