Good Evening everyone, I am asking your help in order to test whether the coefficient CSR that I am using as my main independent variable, differs within subgroups of the sample. I understood from previous posts that there are two ways to test the difference between coefficients: one it's about using <suest> command, another implies the creation of an interaction term within the regression and then a simple <test> command.
For my baseline regression I used <xtreg> and I saw that I cannot use <suest> since it is not supported for xtreg. So I decided to go for the creation of an interaction term. My baseline regression which tests whether CSR has an effect on cash is the following:
<xtreg> Cash_w CSR Size_w Leverage_w CAPEX_w SGA_w Dummy_2014 Dummy_2015 Dummy_2016 Dummy_2017 Dummy_2018 Dummy_2019, fe
and l guess it should be like that with the interaction term:
<xtreg> Cash_w CSR Size_w Leverage_w CAPEX_w SGA_w i.LitigationRisk##c.(CSR Size_w Leverage_w CAPEX_w SGA_w) Dummy_2014 Dummy_2015 Dummy_2016 Dummy_2017 Dummy_2018 Dummy_2019, fe
(Litigation risk it is a dummy variable which equals 1 for the subset of firms which are classified as having a higher litigation risk and 0 for firms characterized by a low litigation risk)
Now I would like to test if the difference between the CSR coefficients of two the subset groups with Litigation Risk = 1 and = 0 is significant. How should I use the <test> command, which is the right formulation for the two coefficients? Is the model with the interaction term correct?
Thanks a lot!
For my baseline regression I used <xtreg> and I saw that I cannot use <suest> since it is not supported for xtreg. So I decided to go for the creation of an interaction term. My baseline regression which tests whether CSR has an effect on cash is the following:
<xtreg> Cash_w CSR Size_w Leverage_w CAPEX_w SGA_w Dummy_2014 Dummy_2015 Dummy_2016 Dummy_2017 Dummy_2018 Dummy_2019, fe
and l guess it should be like that with the interaction term:
<xtreg> Cash_w CSR Size_w Leverage_w CAPEX_w SGA_w i.LitigationRisk##c.(CSR Size_w Leverage_w CAPEX_w SGA_w) Dummy_2014 Dummy_2015 Dummy_2016 Dummy_2017 Dummy_2018 Dummy_2019, fe
(Litigation risk it is a dummy variable which equals 1 for the subset of firms which are classified as having a higher litigation risk and 0 for firms characterized by a low litigation risk)
Now I would like to test if the difference between the CSR coefficients of two the subset groups with Litigation Risk = 1 and = 0 is significant. How should I use the <test> command, which is the right formulation for the two coefficients? Is the model with the interaction term correct?
Thanks a lot!
Comment