Hello guys,
This problem has troubled me for weeks. I have an economics dataset measures 9 macroeconomics indicators of 6 countries, over the time period of 234 months. The dependent variable is the occurrence of economic at time t crisis as 1 is crisis and 0 is none. I want to to get the probability of a crisis occurs given the data of 9 indicators, therefore, I use logistics regression for panel data. After declared the dataset to be time series, I ran like this:
I tried both random effect and fixed effect. The first problem is the log likelihood is too low, around -600 and -700. The second problem is when I calculate the probability using
, the fixed effect returned very low value (0% to 1%), and the random effect returned negative probability.
What confused me the most is, when I separated the data of each countries and ran common logistics regression, the result was really good. So I'm not sure what caused the bad result in panel data.
Any advice would be appreciated!
This problem has troubled me for weeks. I have an economics dataset measures 9 macroeconomics indicators of 6 countries, over the time period of 234 months. The dependent variable is the occurrence of economic at time t crisis as 1 is crisis and 0 is none. I want to to get the probability of a crisis occurs given the data of 9 indicators, therefore, I use logistics regression for panel data. After declared the dataset to be time series, I ran like this:
Code:
. xtlogit CRISIS INFLATION RESIMP M2_GR CREDIT_GR TROP_GR, fe
Code:
. predict P_CRISIS
What confused me the most is, when I separated the data of each countries and ran common logistics regression, the result was really good. So I'm not sure what caused the bad result in panel data.
Any advice would be appreciated!
Comment