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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.