Hi- I am looking for a code that can match panel data with years and industry only for pre- period. My modal is DID Y=post*mandatory +Fixed effects.
Mandatory is a dummy =1 or 0 represents my control and treatment (treatment is 1). Post is a dummy equals 1 after event.
This is a panel data with 37 firms as treatment (mandatory=1).
I need to match on pre- period based on variables "before_after_event years" (that is all years between (-1)-(-4)) and "SIC_2digit".
the propensity should be run on variables "E", "leverage" and "AT".
1. I try to find a code but didn't see anything that can work.
2.When "before_after_event years" is >= o , I do not need to match anymore- how can I build my sample for that? the pre- should be match but the post does not?
3. I prefer to do not loose treatment firms
Best,
HB
Can you post what code you tried and what did not work. As well as a sample of expected output.
@HEB1 What were you trying to do with that code you posted? I do not see how it is related to your objective or the data you provided. It will be tricky to give a solution without details of what is not working in code you've tried, and an output example.
Also, when you post SAS code, use use the "little running man" button.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: