Hello,
I'm using some "custom" block-bootstrap code to calculate standard errors for a range of regression results. I'd like to display these results (coefficients, standard errors, and stars representing p-values) in a table using something like estout (which I like very much). I've figured out how to have estout display the bootstrapped standard errors, but I can't figure out how to change the p-values on which it is basing the stars. Here's an example:
I'm happy with how easy it is to have estout display my standard errors rather than the true ones, but obviously it has no idea that they're standard errors. I don't know how to adjust the input that stars is using. Should I overwrite the information in e(V)? If so, how?
Two quick comments:
1. I'm using an estimation procedure that doesn't allow me to simply use "vce(bootstrap)".
2. I'm certainly open to suggestions on the overall process that I'm using.
Thanks,
Mitch
I'm using some "custom" block-bootstrap code to calculate standard errors for a range of regression results. I'd like to display these results (coefficients, standard errors, and stars representing p-values) in a table using something like estout (which I like very much). I've figured out how to have estout display the bootstrapped standard errors, but I can't figure out how to change the p-values on which it is basing the stars. Here's an example:
Code:
sysuse auto, clear * The regression of interest: local vlist mpg trunk reg price `vlist' estimates store e1 * Make a matrix with bootstrapped standard errors. * In reality, this is based on bootstrapped results (not just invented numbers), but this is a simplification. matrix define bsemat = J(1,3,0) matrix colnames bsemat = "`vlist' _cons" matrix bsemat[1,1] = 1.1 matrix bsemat[1,2] = 2.2 matrix bsemat[1,3] = 0.3 * Adding my standard errors to the estimation results. estimates restore e1 estadd matrix seboot = bsemat * Displaying the results with "real" standard errors: estout e1, cells(b(star fmt(%9.3f)) se(par fmt(%9.3f))) starlevels(* 0.10 ** 0.05 *** 0.01) stats(N r2, fmt(0 3)) * Displaying the results with my standard errors: estout e1, cells(b(star fmt(%9.3f)) seboot(par fmt(%9.3f))) starlevels(* 0.10 ** 0.05 *** 0.01) stats(N r2, fmt(0 3))
Two quick comments:
1. I'm using an estimation procedure that doesn't allow me to simply use "vce(bootstrap)".
2. I'm certainly open to suggestions on the overall process that I'm using.
Thanks,
Mitch
Comment