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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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