Hello,
I would like to calculate the average turnover of treated companies and compare the value to a matched sample of non-treated companies. The matched pair IDs are shown in a variable called "pairs".
Can you please help me estimate the values below using a small subset of my dataset as an example?
average turnover of treated companies = (132 + 27)/2
average turnover of matched non-treated companies = (128 + 26)/2
Thank you.
I would like to calculate the average turnover of treated companies and compare the value to a matched sample of non-treated companies. The matched pair IDs are shown in a variable called "pairs".
Can you please help me estimate the values below using a small subset of my dataset as an example?
average turnover of treated companies = (132 + 27)/2
average turnover of matched non-treated companies = (128 + 26)/2
Thank you.
company | year | treated | turnover | pairs |
Company A | 2014 | 0 | 134 | 1 |
Company A | 2015 | 1 | 132 | 2 |
Company A | 2016 | 0 | 145 | 3 |
Company B | 2014 | 0 | 129 | 1 |
Company B | 2015 | 0 | 128 | 2 |
Company B | 2016 | 0 | 122 | 3 |
Company C | 2014 | 0 | 23 | 4 |
Company C | 2015 | 0 | 24 | 5 |
Company C | 2016 | 1 | 27 | 6 |
Company D | 2014 | 0 | 20 | 4 |
Company D | 2015 | 0 | 21 | 5 |
Company D | 2016 | 0 | 26 | 6 |
Comment