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

Hi,

Kindly, I would like to write a code for Propensity score matching (PSM) to match each firm in the event_firms file with a firm from the control_firms file based on year, ROA, size, leverage, and growth. I am attaching two files. 

Your assistance is highly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
mkeintz
PROC Star

What is propensity score matching? 

 

You have two speadsheets with  varying length annual time series for (presumably) firm id's.  Each sheet has 4 variables:  ROA SIZE LEVERAGE and GROWTH.  You'll have to provide more explanation for most of us to understand what criteria you want to use for matching an event firm with a control firm.  (BTW, once a control firm is matched to an event firm, is it still available for more matches?  I suspect not, but you should specify).

 

Also, if you were to put your sample data in the form of working DATA steps, you'll usually get more good advice, because then programs can be tested.  Help us help you.

 

 

 

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

View solution in original post

1 REPLY 1
mkeintz
PROC Star

What is propensity score matching? 

 

You have two speadsheets with  varying length annual time series for (presumably) firm id's.  Each sheet has 4 variables:  ROA SIZE LEVERAGE and GROWTH.  You'll have to provide more explanation for most of us to understand what criteria you want to use for matching an event firm with a control firm.  (BTW, once a control firm is matched to an event firm, is it still available for more matches?  I suspect not, but you should specify).

 

Also, if you were to put your sample data in the form of working DATA steps, you'll usually get more good advice, because then programs can be tested.  Help us help you.

 

 

 

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 871 views
  • 3 likes
  • 2 in conversation