Hi. I am trying to create a descriptive and balance table in a excel document that looks like the image below, with the p-values starred as needed. However, so far, I've only managed the code below and am at a loss on how to create the table in the image in stata. Any pointers here will be much appreciated. Thanks

Code:
eststo control: quietly estpost summarize /// > pop_perkm2_2019 povertyperct test_avg7day if stepone == 0 . eststo treatment: quietly estpost summarize /// > pop_perkm2_2019 povertyperct test_avg7day if stepone == 1 . eststo diff: quietly estpost ttest /// > pop_perkm2_2019 povertyperct test_avg7day, by(stepone) unequal estout control treatment diff, /// > cells("mean(pattern(1 1 0) fmt(2)) sd(pattern(1 1 0)) b(star pattern(0 0 1) fmt(2)) t(pattern(0 0 1) par fm > t(2))") /// > label ----------------------------------------------------------------------------------------------------- control treatment diff mean sd mean sd b t ----------------------------------------------------------------------------------------------------- (max) pop_perkm~2019 1053.20 2352.69 1397.43 3397.37 -344.23 (-0.33) (max) povertyperct 15.08 10.15 23.19 14.35 -8.11 (-1.84) (sum) test_avg7day 1.01e+08 1.09e+08 90342730.46 94012943.52 10737483.63 (0.30) -----------------------------------------------------------------------------------------------------
Comment