BookmarkSubscribeRSS Feed
dkanand86
Calcite | Level 5

Hi Everyone,

 

I have two tasks for each variable in my dataset:

 

1. Find outliers for each variable

2. Treat the outliers for each variable

 

 

Let me know your comments.

 

Regards,

5 REPLIES 5
ballardw
Super User

Define outlier. There is no actual standard definition, so you'll have to have some rule for that.

 

proc univariate may get you started with some ideas.

 

And what do you mean by "treat" the outliers? There are many approaches some can be pretty complex, others are as simple as set the value to missing or remove the observation from the dataset.

Ksharp
Super User
Yeah.There are many way you can define outliers:

1) [mean-2*std , mean+2*std]  out of this range is outliers.
2) [Q1- 1.5*(Q3-Q1)  ,  Q3 + 1.5*(Q3-Q1)]  out of this range is outliers.
3) Check   proc robustreg  
Ksharp
Super User
Here can give you outliers:


proc robustreg data=sashelp.cars method=MM ;
model invoice = /diagnostics;
run;


Rick_SAS
SAS Super FREQ

For a discussion of detecting univariate outliers, you might want to read Detecting outliers in SAS   It explains some of KSharp's suggestions.

Ksharp
Super User
Oh. Don't format the IML function like : LTS() , LTM()..... Rick's blog has already explained it . And Better check the documentation of IML, There is a special chapter to talk about it .

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 5 replies
  • 2169 views
  • 0 likes
  • 4 in conversation