BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dsp1
Calcite | Level 5

Hi, I am looking for a macro which needs to do some tasks as mentioned below.

 

It should check all outliers in the given dataset and treat those outliers based on some conditions like imputing those outlier values with median or mode or deleting those outliers...

 

If anyone have this macro, please share with us...

 

Thanks in advance.

1 ACCEPTED SOLUTION
8 REPLIES 8
andreas_lds
Jade | Level 19

So another task that you don't want to solve for yourself. Maybe you should hire someone.

Link to the other macro request: https://communities.sas.com/t5/SAS-Data-Mining-and-Machine/Dummy-Variable-Creation-Macro/m-p/433387

dsp1
Calcite | Level 5

I am not kidding Andreas. I am new to SAS macros.......that's why asking and we have some existing macros for each question I asked. But in those macros, some manual intervention required and those macros are like bits and pieces...to solve those type of issues I have posted my requirements....

RW9
Diamond | Level 26 RW9
Diamond | Level 26

This is not a contract work request forum.  Please post specific question on individual items.

Kurt_Bremser
Super User

@rpeddireddy wrote:

I am not kidding Andreas. I am new to SAS macros.......that's why asking and we have some existing macros for each question I asked. But in those macros, some manual intervention required and those macros are like bits and pieces...to solve those type of issues I have posted my requirements....


If you are that far out of your depth, you should seriously consider hiring a consultant for the time being, and attend as many SAS courses as you can get while the consultant solves your most pressing issues.

PaigeMiller
Diamond | Level 26

There's also Google, have you tried that?

--
Paige Miller
ChrisHemedinger
Community Manager

Perhaps if you could be more specific about your objective here, with sample data that shows what you're starting with and what you want as a result.

 

For example, if you're looking to reduce the impact of outliers on your data, you might be looking at Winsorization.  Or depending on your analysis, you could use ROBUSTREG to calculate univariate statistics that you need.

 

Asking for a specific macro -- which can be a dangerous black box of code if you don't understand what it's doing -- is a particular hot-button on this community (as you've seen).

Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.
Reeza
Super User

Search LexJansen.com for user written papers which sometimes includes the code to solve these issues. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 8 replies
  • 1986 views
  • 0 likes
  • 8 in conversation