Hello everybody,
I am doing a research and I finished recently with collecting my data and I am running my regressions. I have an issue with my regression because of the fixed effects. My supervisor did not know how to do this either so he advised to go to the internet for help. Google/YouTube was not working out, I'm hoping it will now!
My Dependend variable is a Dummy so I cannot do a normal OLS regression. I am doing a probit regression. The first problem I had was the following note:
note: X9_D != 1 predicts failure perfectly. As a result my sample decreased with 70%. On the internet I found to delete this variable from the regression, and then it was fine.
(I think I understand the principle because in my sample, whenever Y=1, then X9=1, always. So that is OK
I have a problem still though , and that is Firm fixed effects. In a normal OLS regression I can do it, but not in a probit regression. I made a dataset with dataex and will explain the variables/problems. I simplified the names etc to make it as simple as possible.
I collected my data by analysing news articles that report about a fraud in a company. I investigated three companies(Ari, Ben and Clair). Examples such as Size and Press coverage will always be the same, regardless of the particular article I am analysing. In the article though many things vary (certain words said in the article, amount of words) based on the article.
These are variables that do not vary per article, but just per company:
X1FE
X2FE
X3FE_D
The others ( X4_D X5_D X6_D X7 X8_D X9_D) vary per article.
My depended variable is Y_D and will be coded either 1 or 0 depending on the content of the article.
"probit Y_D X1FE X2FE X3FE_D X4_D X5_D X6_D X7 X8_D" is what I used for my regression, but now I do not take into account that X1 X2 X3 are firm fixed effects. Note: I deleted X9_D here (the reasons I explained early in this post).
Hopefully you can help me with a probit regression with fixed effects!
Thanks in advance!
Ruud
The data:
I am doing a research and I finished recently with collecting my data and I am running my regressions. I have an issue with my regression because of the fixed effects. My supervisor did not know how to do this either so he advised to go to the internet for help. Google/YouTube was not working out, I'm hoping it will now!
My Dependend variable is a Dummy so I cannot do a normal OLS regression. I am doing a probit regression. The first problem I had was the following note:
note: X9_D != 1 predicts failure perfectly. As a result my sample decreased with 70%. On the internet I found to delete this variable from the regression, and then it was fine.
(I think I understand the principle because in my sample, whenever Y=1, then X9=1, always. So that is OK
I have a problem still though , and that is Firm fixed effects. In a normal OLS regression I can do it, but not in a probit regression. I made a dataset with dataex and will explain the variables/problems. I simplified the names etc to make it as simple as possible.
I collected my data by analysing news articles that report about a fraud in a company. I investigated three companies(Ari, Ben and Clair). Examples such as Size and Press coverage will always be the same, regardless of the particular article I am analysing. In the article though many things vary (certain words said in the article, amount of words) based on the article.
These are variables that do not vary per article, but just per company:
X1FE
X2FE
X3FE_D
The others ( X4_D X5_D X6_D X7 X8_D X9_D) vary per article.
My depended variable is Y_D and will be coded either 1 or 0 depending on the content of the article.
"probit Y_D X1FE X2FE X3FE_D X4_D X5_D X6_D X7 X8_D" is what I used for my regression, but now I do not take into account that X1 X2 X3 are firm fixed effects. Note: I deleted X9_D here (the reasons I explained early in this post).
Hopefully you can help me with a probit regression with fixed effects!
Thanks in advance!
Ruud
The data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str5 Firm double X1FE int X2FE byte(X3FE_D X4_D X5_D X6_D) int X7 byte(X8_D X9_D Y_D L M N) "Ari" 9.985248048844232 1339 0 1 0 0 823 0 0 0 . . . "Ari" 9.985248048844232 1339 0 1 0 1 226 0 1 1 . . . "Ari" 9.985248048844232 1339 0 1 0 0 114 0 1 0 . . . "Ari" 9.985248048844232 1339 0 1 0 0 192 1 0 0 . . . "Ari" 9.985248048844232 1339 0 1 0 0 244 0 0 0 . . . "Ari" 9.985248048844232 1339 0 1 0 1 262 1 1 0 . . . "Ari" 9.985248048844232 1339 0 1 0 0 128 0 0 0 . . . "Ben" 9.226599905207358 1521 1 0 1 0 519 1 0 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 166 0 0 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 325 0 0 0 . . . "Ben" 9.226599905207358 1521 1 0 1 0 469 1 1 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 525 0 0 0 . . . "Ben" 9.226599905207358 1521 1 0 1 0 222 1 1 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 708 1 0 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 770 1 0 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 1421 0 0 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 435 0 1 0 . . . "Ben" 9.226599905207358 1521 1 0 0 0 370 1 0 0 . . . "Ben" 9.226599905207358 1521 1 0 1 0 800 0 0 0 . . . "Clair" 7.879730947834448 24 1 1 0 0 97 0 1 0 . . . "Clair" 7.879730947834448 24 1 0 0 0 272 1 0 0 . . . "Clair" 7.879730947834448 24 1 0 0 1 227 0 0 0 . . . "Clair" 7.879730947834448 24 1 0 0 1 281 0 1 0 . . . "Clair" 7.879730947834448 24 1 1 0 0 171 0 1 0 . . . end
Comment