Hi guys,
I am running an event study, trying to measure the impact of rating changes on the stock market for different countries and I am stuck with this easy procedure:
My variables are: date, index return and downgrade. I am basically studying the effect that changes in rating (downgrades) have in the stock market (index). I have data from 01.01.1998 until 31.12.2017 and I would like to run a sub-sample regression for the crisis period (01.01.2008 - 31.12.2012) and for the non-crisis period (01.01.1998 - 31.12.2007 & 01.01.2013 - 31.12.2017)
The variable downgrade is a dummy variable.
My data looks like this:

I am basically using the following command for the sub-sample regression for the crisis period:
xtreg indexreturn downgrade if date>=01012008 & date<=31122012, re
And I get the error: no observations
Can anyone please help me?
I am running an event study, trying to measure the impact of rating changes on the stock market for different countries and I am stuck with this easy procedure:
My variables are: date, index return and downgrade. I am basically studying the effect that changes in rating (downgrades) have in the stock market (index). I have data from 01.01.1998 until 31.12.2017 and I would like to run a sub-sample regression for the crisis period (01.01.2008 - 31.12.2012) and for the non-crisis period (01.01.1998 - 31.12.2007 & 01.01.2013 - 31.12.2017)
The variable downgrade is a dummy variable.
My data looks like this:
I am basically using the following command for the sub-sample regression for the crisis period:
xtreg indexreturn downgrade if date>=01012008 & date<=31122012, re
And I get the error: no observations
Can anyone please help me?
Comment