Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need help with formatting in asdoc

    I am having an issue with formatting the values in the table while using asdoc and tabstat. for example,

    My samples were in millions so when I wanted to make a descriptive statistics table, the output file followed the default format %9.0g, regardless of what format command I added. the following code was giving me an exponential value like 4.828e+09 instead of the numeric value 4,828,000,000.

    Code:
    asdoc tabstat variable1, statistics( N mean ) format(%15.0gc) save(summary.doc) title(Sample Table)
    if i use
    Code:
      
     tabstat variable1, statistics( N mean ) format(%15.0gc)
    I get the correctly formatted stata output with comma.

    I would be grateful if anyone can direct me on how to correctly format numeric values in asdoc. Thanks.


  • #2
    Abdullah Shoeb asdocx allows to set different display formats for each column. Further, it allows to set different thousand separators, report comma instead of dot for decimal places, and use trailing and leading zeros. You may want to explore other details of asdocx here https://fintechprofessor.com/asdocx/ .
    Regards
    --------------------------------------------------
    Attaullah Shah, PhD.
    Professor of Finance, Institute of Management Sciences Peshawar, Pakistan
    FinTechProfessor.com
    https://asdocx.com
    Check out my asdoc program, which sends outputs to MS Word.
    For more flexibility, consider using asdocx which can send Stata outputs to MS Word, Excel, LaTeX, or HTML.

    Comment

    Working...
    X