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,
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.
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
Here can give you outliers: proc robustreg data=sashelp.cars method=MM ; model invoice = /diagnostics; run;
For a discussion of detecting univariate outliers, you might want to read Detecting outliers in SAS It explains some of KSharp's suggestions.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.