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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 1 reply
  • 527 views
  • 3 likes
  • 2 in conversation