Home Forums ASDOC : Easy Publication Quality Tables in Stata Asdoc tabulate–showing statistics, rounding decimals Reply To: Asdoc tabulate–showing statistics, rounding decimals

Attaullah Shah
Keymaster
Post count: 69

Currently, asdoc does not report additional statistics with tabulation commands. I am working on asdocx, a premium version of asdoc, which shall add all these missing functionalities. At the moment, there is a workaround for this issue. If you read the asdoc help file, you shall see in Section 1.9 that there is a text() option that can be used for reporting text or any additional statistics from the r() and e() macros. Since tabulation command leaves the Chi2 and its P-value in r() macros, therefore, they can be written to the existing document using the text option. See the following examples

webuse citytemp2
asdoc tabulate region agecat, chi2 replace
asdoc, text(Chi2 =`r(chi2)'  Pr=`r(p)')