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

sas-innovate-2024.png

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.

 

Register now!

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.

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