BookmarkSubscribeRSS Feed
bkillins10
Calcite | Level 5

Hello,

I am a fairly new user to SAS and I am looking to match banks (banks that received TARP funds vs. banks that did not receive TARP funds).

I have attached a sample data set which is stacked with TARP and non-TARP banks identified by a dummy variable under the TARP variable.

I would like to match TARP and non-TARP banks on three variables,

1. asset (closest match)

2. depdom (closest match)

3. rbc1rwaj (closet match)

The fed_rssd variable is the identifier variable. I would appreciate any guidance or source I can obtain some information on how to go about this task.

I have attached the excel sheet.

Thanks for any help.

3 REPLIES 3
bkillins10
Calcite | Level 5

Thanks Reeza for the link!!

bkillins10
Calcite | Level 5

I have used the gmatch macro and thanks for the link.  I see the gmatch macro uses absolute values as the constraint on the variables for matching.  Any tips on how I can use percentage of variable in this code? 

Ex. Instead of within say 100 points of X, 50 point of Y, etc.  We can modify this code to use with 50% of X, 25% of Y, etc.

Thanks for any help!!

PGStats
Opal | Level 21

Simply transform your match variables into logarithms. - PG

PG

sas-innovate-2024.png

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.

 

Register now!

How to Concatenate Values

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.

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
  • 512 views
  • 0 likes
  • 2 in conversation