Dear all,
I am using Stata 14 and I want to match treatment firms and control firms one-to-one through the following way: First, control firms have to be in the same two-digit SIC code as with the treatment firms and they should be in the same portfolio as well which is constructed based on the three firm characteristics (i.e. var2, var3 & var4). Then, control firms are chosen based on the smallest difference in var1 as compared to the treatment firms (i.e. treatment=0 if control firm and treatment=1 if treated firm). If there is any tie among control firms (i.e. Company 1 and Company 5 can be both matched to Company 6 in the below data-set based on the smallest difference in Var1), the one who has the lowest rank in terms of the smallest difference in the aforementioned firm characteristics as compared to the treatment firm is chosen.
Up to now, I was able to construct the first part (i.e. more than 100 portfolios are constructed). However, I could not figure out how to match control and treatment firms based on the smallest difference in Var1 for each portfolio and do the ranking in case of ties. To illustrate my data-set (i.e. only 9th portfolio is demonstrated below), part of my data-set is provided below:
Since I have recently started to use Stata, I am a bit lost. I will appreciate any of your response.
Regards,
I am using Stata 14 and I want to match treatment firms and control firms one-to-one through the following way: First, control firms have to be in the same two-digit SIC code as with the treatment firms and they should be in the same portfolio as well which is constructed based on the three firm characteristics (i.e. var2, var3 & var4). Then, control firms are chosen based on the smallest difference in var1 as compared to the treatment firms (i.e. treatment=0 if control firm and treatment=1 if treated firm). If there is any tie among control firms (i.e. Company 1 and Company 5 can be both matched to Company 6 in the below data-set based on the smallest difference in Var1), the one who has the lowest rank in terms of the smallest difference in the aforementioned firm characteristics as compared to the treatment firm is chosen.
Up to now, I was able to construct the first part (i.e. more than 100 portfolios are constructed). However, I could not figure out how to match control and treatment firms based on the smallest difference in Var1 for each portfolio and do the ranking in case of ties. To illustrate my data-set (i.e. only 9th portfolio is demonstrated below), part of my data-set is provided below:
Portfolio | Company Name | Treatment | var1 | var 2 | var 3 | var 4 |
9 | Company 1 | 0 | 6 | 39303.29 | 0.283071 | 0.300222 |
9 | Company 2 | 0 | 5 | 53535 | 0.27397 | 0.234608 |
9 | Company 3 | 0 | 32 | 96075.69 | 0.252854 | 0.234742 |
9 | Company 4 | 1 | 16 | 95403.36 | 0.288711 | 0.253231 |
9 | Company 5 | 0 | 6 | 4948.74 | 0.304504 | 0.25742 |
9 | Company 6 | 1 | 7 | 5943.369 | 0.315158 | 0.232289 |
9 | Company 7 | 1 | 15 | 7587.342 | 0.292909 | 0.274163 |
9 | Company 8 | 0 | 29 | 54537.61 | 0.269264 | 0.304528 |
9 | Company 9 | 0 | 27 | 23657.51 | 0.228177 | 0.33258 |
9 | Company 10 | 0 | 39 | 30194.24 | 0.253387 | 0.279335 |
Since I have recently started to use Stata, I am a bit lost. I will appreciate any of your response.
Regards,
Comment