Hi
I am trying to do a CEM matching for panel data with multiple time periods for a DID dataset. I have treatment groups and ID is the company id and year is the time period and profit is the DV and treatment group and post (which is after treatment) and employees and RD are covariates or controls that can be mathced on . The idea is to find firms that are roughly comparable. The dataset is as follows:
So each firm has multiple observations across different time periods (2006-2007). Can some one tell how to match these observations? Because, ideally firms have to matched pre-treatment and then compared after. In that case how do I match them?
Please advise
I am trying to do a CEM matching for panel data with multiple time periods for a DID dataset. I have treatment groups and ID is the company id and year is the time period and profit is the DV and treatment group and post (which is after treatment) and employees and RD are covariates or controls that can be mathced on . The idea is to find firms that are roughly comparable. The dataset is as follows:
ID | year | Profit | Treatment | Post | employees | RD |
1 | 2006 | 23 | 0 | 0 | 50 | 30 |
1 | 2007 | 32 | 1 | 1 | 40 | 30 |
2 | 2006 | 12 | 0 | 0 | 20 | 30 |
2 | 2007 | 33 | 0 | 0 | 23 | 43 |
3 | 2006 | 24 | 0 | 0 | 23 | 22 |
3 | 2007 | 30 | 1 | 0 | 23 | 24 |
4 | 2006 | 10 | 0 | 0 | 24 | 23 |
4 | 2007 | 11 | 0 | 0 | 26 | 23 |
So each firm has multiple observations across different time periods (2006-2007). Can some one tell how to match these observations? Because, ideally firms have to matched pre-treatment and then compared after. In that case how do I match them?
HTML Code:
cem (employees RD) , treatment(Treatment)