First of all, I would like to say that this is my first post on this forum and that I appreciate the advice I have already used by reading previous threads in many cases.
I am currently writing my master thesis and I could say that I am a bit stuck with the empirical part due to the problems occur by the Hausman tests. I am using a panel data set consisted of the 5 biggest US retail companies:
The variables Date and CompanyID were created in order to be able to use properly xtset. CompanyID represents the company and Date the date in the format you can see above (I googled it because I used quarterly data and couldn't do it another way). The "fundamental" variables are Revenue, Return on Asset and Market Value, while the secondary variables are inventory, long-term debt and number of employees.
The main focus of my thesis is to analyze the relationship between the "fundamental variables" and the "secondary variables. To do so I perform 3 regressions, making one of the fundamental variables dependent each time and all the other 5 remaining as independent. The problem the Hausman test on the 2/3 regressions give an error:
I used the dataex and the CODE delimeters but I'm not sure how better I could present my results since it is my first time posting.
Thank you in advance for your time and effort. I would be grateful for any kind of help
I am currently writing my master thesis and I could say that I am a bit stuck with the empirical part due to the problems occur by the Hausman tests. I am using a panel data set consisted of the 5 biggest US retail companies:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 datadate int fiscalyear byte fiscalquarter str4 tickersymbol str21 companyname float(inv rev netinc mv ltdebt empl roa Date CompanyID) "28/2/2005" 2005 2 "COST" "COSTCO WHOLESALE CORP" 4002.654 12658.077 498.605 . 732.589 110 .030312054 16495 1 "31/5/2005" 2005 3 "COST" "COSTCO WHOLESALE CORP" 4040.253 12006.21 708.393 . 715.448 110 .04221042 16587 1 "31/8/2005" 2005 4 "COST" "COSTCO WHOLESALE CORP" 4014.699 16709.936 1063.092 . 710.675 110 .06437659 16679 1 "30/11/2005" 2006 1 "COST" "COSTCO WHOLESALE CORP" 4825.284 12933.346 215.818 23767.61 546.82 127 .01241602 16770 1 "28/2/2006" 2006 2 "COST" "COSTCO WHOLESALE CORP" 4277.534 14059.012 512.021 24040.615 536.998 127 .02981101 16860 1 end
The main focus of my thesis is to analyze the relationship between the "fundamental variables" and the "secondary variables. To do so I perform 3 regressions, making one of the fundamental variables dependent each time and all the other 5 remaining as independent. The problem the Hausman test on the 2/3 regressions give an error:
Code:
. hausman fe_result re_result Note: the rank of the differenced variance matrix (2) does not equal the number of coefficients being tested (5); be sure this is what you expect, or there may be problems computing the test. Examine the output of your estimators for anything unexpected and possibly consider scaling your variables so that the coefficients are on a similar scale. ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | fe_result re_result Difference S.E. -------------+---------------------------------------------------------------- mv | .0255729 .0218857 .0036872 . roa | 26564.38 -50143.92 76708.31 . inv | 1.009677 1.870039 -.8603618 . ltdebt | .3181855 .2454759 .0727096 . empl | 48.5215 9.213474 39.30802 8.203313 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from xtreg B = inconsistent under Ha, efficient under Ho; obtained from xtreg Test: Ho: difference in coefficients not systematic chi2(2) = (b-B)'[(V_b-V_B)^(-1)](b-B) = -10.39 chi2<0 ==> model fitted on these data fails to meet the asymptotic assumptions of the Hausman test; see suest for a generalized test
Code:
. hausman fe_result re_result ---- Coefficients ---- | (b) (B) (b-B) sqrt(diag(V_b-V_B)) | fe_result re_result Difference S.E. -------------+---------------------------------------------------------------- mv | 4.16e-07 5.99e-07 -1.83e-07 2.97e-08 rev | 8.36e-07 -6.25e-07 1.46e-06 2.72e-07 inv | -2.81e-06 -1.49e-06 -1.32e-06 3.80e-07 ltdebt | -4.47e-07 -1.08e-07 -3.39e-07 1.08e-07 empl | -.0000399 4.70e-06 -.0000446 .0000508 ------------------------------------------------------------------------------ b = consistent under Ho and Ha; obtained from xtreg B = inconsistent under Ha, efficient under Ho; obtained from xtreg Test: Ho: difference in coefficients not systematic chi2(5) = (b-B)'[(V_b-V_B)^(-1)](b-B) = 45.74 Prob>chi2 = 0.0000 (V_b-V_B is not positive definite)
I used the dataex and the CODE delimeters but I'm not sure how better I could present my results since it is my first time posting.
Thank you in advance for your time and effort. I would be grateful for any kind of help
Comment