Dear Stata community,
I am currently analyzing a dataset which contains M&A deals and acquiror and target specific variables.
Now I would like to test, whether fixed or random effects, or maybe an OLS is the preferred model.
When I want to use the xtset command: xtset ID_acq Year, I receive the error message that there are "repeated time values within panel". This is because there are acquiring firms that have several acquisitions in one year.
However, I need to keep all of those observations, as the target companies and the deals are different.
As a result, I tried it with the following code:
xtset Year
xtreg Bid_premium E_Pillar_acq S_Pillar_acq G_Pillar_acq $CONTROLS_ACQ E_Pillar_tar S_Pillar_tar G_Pillar_tar $CONTROLS_TAR $DEALCONTROLS, fe
estimates store fixed
xtreg Bid_premium E_Pillar_acq S_Pillar_acq G_Pillar_acq $CONTROLS_ACQ E_Pillar_tar S_Pillar_tar G_Pillar_tar $CONTROLS_TAR $DEALCONTROLS, re
estimates store random
hausman fixed random
In this example, the hausman test gives out a p-value of 0.8326 which means that random effects is the preferred model.
When I set xtset ID_acq instead of Year:
xtset ID_acq
and then test again, the hausman test gives out a p-value of 0.0000 indicating that the fixed effects model is the preferred one.
Thus my question:
What do I have to do to find out the correct model?
Do I have to combine the xtset command together with ID and Year or is it also correct to just specify xtset Year OR xtset ID?
If I have to use xtset ID Year together, what can I do to solve the problem of having repeated time values within my panel? Checking the firms for which is the case, I only found one firm that has 2 acquisitions in the same year... However, I dont want to delete that one observations that creates the problem as my sample is already quite limited.
If I dont need to combine xtset ID Year, which other xtset command do I use and why? Only xtset Year or xtset ID, as the outcome is a different model?
Thank you for your helpful answers in advance.
Best regards,
Nils
I am currently analyzing a dataset which contains M&A deals and acquiror and target specific variables.
Now I would like to test, whether fixed or random effects, or maybe an OLS is the preferred model.
When I want to use the xtset command: xtset ID_acq Year, I receive the error message that there are "repeated time values within panel". This is because there are acquiring firms that have several acquisitions in one year.
However, I need to keep all of those observations, as the target companies and the deals are different.
As a result, I tried it with the following code:
xtset Year
xtreg Bid_premium E_Pillar_acq S_Pillar_acq G_Pillar_acq $CONTROLS_ACQ E_Pillar_tar S_Pillar_tar G_Pillar_tar $CONTROLS_TAR $DEALCONTROLS, fe
estimates store fixed
xtreg Bid_premium E_Pillar_acq S_Pillar_acq G_Pillar_acq $CONTROLS_ACQ E_Pillar_tar S_Pillar_tar G_Pillar_tar $CONTROLS_TAR $DEALCONTROLS, re
estimates store random
hausman fixed random
In this example, the hausman test gives out a p-value of 0.8326 which means that random effects is the preferred model.
When I set xtset ID_acq instead of Year:
xtset ID_acq
and then test again, the hausman test gives out a p-value of 0.0000 indicating that the fixed effects model is the preferred one.
Thus my question:
What do I have to do to find out the correct model?
Do I have to combine the xtset command together with ID and Year or is it also correct to just specify xtset Year OR xtset ID?
If I have to use xtset ID Year together, what can I do to solve the problem of having repeated time values within my panel? Checking the firms for which is the case, I only found one firm that has 2 acquisitions in the same year... However, I dont want to delete that one observations that creates the problem as my sample is already quite limited.
If I dont need to combine xtset ID Year, which other xtset command do I use and why? Only xtset Year or xtset ID, as the outcome is a different model?
Thank you for your helpful answers in advance.
Best regards,
Nils
Comment