Hello,
I am using Stata/BE 17.0.
I have a set of estimates using the Random Effects estimator and a set of estimates using the Hausman-Taylor IV estimator.
For each set of estimates I am producing an output table using the estout command. In both output tables, I also include a joint significance test for five variables for which I add the test statistic to the stored regression estimate using the estadd command. The code to obtain the test statistics and the final output tables is:
Note that:
Random Effects table: asterisks are showing for Chi2 test as supposed to.

PROBLEM: Hausman Taylor table: asterisks are not showing for unknown reason

I'd appreciate any help on this. Please let me know if you need more information regarding what I'm doing.
I am using Stata/BE 17.0.
I have a set of estimates using the Random Effects estimator and a set of estimates using the Hausman-Taylor IV estimator.
For each set of estimates I am producing an output table using the estout command. In both output tables, I also include a joint significance test for five variables for which I add the test statistic to the stored regression estimate using the estadd command. The code to obtain the test statistics and the final output tables is:
Code:
local variables RE0F RE1F RE2F RE0M RE1M RE2M HT0F HT1F HT2F HT0M HT1M HT2M foreach v of local variables { estimates restore `v' test res_sp10 res_sp20 res_sp30 res_sp40 res_sp50 estadd scalar chi3 = r(chi2) } estout RE0F RE1F RE2F RE0M RE1M RE2M, label cells(b(star fmt(3))) keep(res_sp10 res_sp20 res_sp30 res_sp40 res_sp50 IMR) varwidth(20) stats(r2_o N_g chi3, labels("R-Squared" "N" "Chi2-Test: FFM=0") star(chi3)) order(res_sp10 res_sp20 res_sp30 res_sp40 res_sp50 IMR) estout HT0F HT1F HT2F HT0M HT1M HT2M, label cells(b(star fmt(3))) keep(res_sp10 res_sp20 res_sp30 res_sp40 res_sp50 IMR) varwidth(20) stats(r2_o N_g chi3, labels("R-Squared" "N" "Chi2-Test: FFM=0") star(chi3)) order(res_sp10 res_sp20 res_sp30 res_sp40 res_sp50 IMR)
- RE0F RE1F RE2F RE0M RE1M RE2M HT0F HT1F HT2F HT0M HT1M HT2M are the names of the stored regression estimates.
- res_sp10 res_sp20 res_sp30 res_sp40 res_sp50 are the variables I test joint significance for
- chi3 is the variable storing the test statistic for each regression
Random Effects table: asterisks are showing for Chi2 test as supposed to.
PROBLEM: Hausman Taylor table: asterisks are not showing for unknown reason
I'd appreciate any help on this. Please let me know if you need more information regarding what I'm doing.
Comment