Hi all,
I have used the user-written command
in order to generate a boostrapped CI. I've managed to save the upper and lower bounds of the bootstrapped 95% CI as scalars, and have used the following formula to generate a standard error: (upper bound + lower bound)/3.92
However, I would now like to export the output using the user-written command outreg2, and I would like to use the newly computed standard error BS_se_coef_x as standard error below the coefficients posted in the outreg2 command.
The normal outreg2 command I would write is the following:
outreg2 using myfile.doc, replace keep(x) nocons addtext(Respondent FE, Yes, Month FE, Yes, Controls, No)
Is there any way to replace the "CV1" cluster-robust standard error computed through the reghdfe model by BS_se_coef_x in the outreg2 output?
Many thanks in advance!
I have used the user-written command
Code:
boottest
Code:
reghdfe y x i.Datum_n, abs(i.token1 ) vce(cluster canton) // user-written by Dr. Correia boottest x=0, seed(1234567890) reps(9999) weighttype(rademacher) bootcluster(canton) boottype(wild) nograph scalar ll = (r(CI)[1,1]) matrix ul = (r(CI)[1,2]) *ESTADD MATRICES // user-witten by Benn Jann I think estadd matrix myll= ll estadd matrix myul= ul scalar ll = (r(CI)[1,1]) scalar ul = (r(CI)[1,2]) g ll_sca=ll g ul_sca=ul g BS_se_coef_x= (ll+ul)/3.92
The normal outreg2 command I would write is the following:
outreg2 using myfile.doc, replace keep(x) nocons addtext(Respondent FE, Yes, Month FE, Yes, Controls, No)
Is there any way to replace the "CV1" cluster-robust standard error computed through the reghdfe model by BS_se_coef_x in the outreg2 output?
Many thanks in advance!
Code:
input long token1 float Datum_n byte verpasstgrouptwosq001 float WFH 100361664 730 5 1 100361664 731 4 0 100361664 744 5 0 100361664 745 4 0 1021535057 729 5 0 1021535057 731 4 0 1021535057 732 4 0 1026478338 733 2 0 1026478338 735 . 1 1026478338 736 3 0 1026478338 739 3 0 1026478338 741 . 0 1026478338 742 4 0 1026478338 747 4 0 1066614879 734 . . 1066614879 735 . 0 1072513264 737 4 0 1072513264 746 5 . 111176343 744 5 0 111176343 745 5 0 111176343 746 . . 1117124372 734 4 0 1117124372 736 4 0 1117124372 737 . 0 1117124372 738 . 0 1117124372 745 5 0 1150399278 744 5 0 1150399278 745 5 0 1153475375 734 3 0 1153475375 735 3 1 1160925440 733 4 0 1160925440 737 4 1 1224729496 733 2 0 1224729496 735 . 1 1239207297 744 5 0 1239207297 745 5 0 1296936529 729 5 0 1296936529 741 5 0 1384842385 738 5 0 1384842385 745 5 0 1384842385 746 1 0 1403917287 735 5 1 1403917287 736 4 0 1403917287 737 . 0 1403917287 745 . 0 1411310422 734 4 0 1411310422 735 4 0 1411310422 737 . 0 1411310422 738 . 0 143084194 736 3 0 143084194 745 3 0 1431500187 726 2 0 1431500187 739 5 . 1431500187 740 5 0 1431500187 743 5 0 1433775557 726 5 0 1433775557 729 . 0 1433775557 732 . 0 1433775557 733 5 . 1433775557 734 5 0 1433775557 736 . 0 1433775557 739 5 0 1433775557 741 1 0 1433775557 743 5 0 1435284991 726 4 0 1435284991 728 4 0 1435284991 729 5 0 1435284991 730 4 . 1435284991 731 4 0 1435284991 732 4 0 1435284991 733 . 0 1435284991 734 . 0 1435284991 745 4 0 1435284991 746 . 0 1435284991 747 4 0 1437450176 729 . 0 1437450176 730 . 0 1437450176 731 . 1 1437450176 734 . . 1437450176 735 . .3333333 xtset token1 Datum_n
Comment