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

Hello,

I have an odd situation I am trying to figure out.  I have two tables containing summarized data at a dealer level, treatment versus control.

Let's say I have Dealer_Num, Net_Revenue, and Customer_Count for a time period summarized by dealer.  I have 127 dealers in my treatment group and 380 dealers in my control group.

Since not all the Control dealers have similar volume to the Treatment dealers, I want to select those most alike.

I currently have this running in Excel Solver, using SUMPRODUCT and a binary flag to "turn on or off" a dealer, and minimize the difference between the two groups.  Is there a way (presumably quicker) to run this in SAS?

Thanks!                        

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Google: Mayo clinic sas macro matching

They have macros that do propensity score matching.

View solution in original post

3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12

This is a common problem in epidemiology for case-control matching.  A typical problem there might be matching by nearest age within 5 years.  It is also called proximity matching.  A generalization to multiple variables is often done by propensity score matching.

If you search for those terms on sas.com, you will find a number of examples to choose from.

Doc Muhlbaier

Duke

Reeza
Super User

Google: Mayo clinic sas macro matching

They have macros that do propensity score matching.

That____Redhead
Fluorite | Level 6

Thank you both - awesome!

SAS Macros

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 1329 views
  • 3 likes
  • 3 in conversation