I made two small changes to boottest to facilitate including results from the command in estimation tables built with programs such as table, esttab, outreg, and outreg2.
1) When boottest computes confidence sets, it will now save them in r(CIstr) which is a string description. This can be as simple as "[0, 1]" or as complicated as "(−∞, −3.21] ∪ [−0.79, −0.60] ∪ [0.32, ∞)". As before, boottest also saves the confidence set bounds in the matrix r(CI).
2) The new format() option lets you control how numbers are displayed in such strings. Type "help format" for documentation of Stata number formats.
If you install Ben Jann's estout package, then you can use the estadd command to transfer boottest r() results to e() results in the most recent estimation results. Examples:
Then the values will be stored in e(p) and e(CIstr). From there, I hope it will be easier to include them in estimation tables, such as with esttab's cells() or stats() option or outreg2's addstat() option.
Install the latest version with "ssc install boottest, replace".
--David
1) When boottest computes confidence sets, it will now save them in r(CIstr) which is a string description. This can be as simple as "[0, 1]" or as complicated as "(−∞, −3.21] ∪ [−0.79, −0.60] ∪ [0.32, ∞)". As before, boottest also saves the confidence set bounds in the matrix r(CI).
2) The new format() option lets you control how numbers are displayed in such strings. Type "help format" for documentation of Stata number formats.
If you install Ben Jann's estout package, then you can use the estadd command to transfer boottest r() results to e() results in the most recent estimation results. Examples:
Code:
estadd scalar p = r(p) estadd local CIstr "`r(CIstr)'"
Install the latest version with "ssc install boottest, replace".
--David
Comment