Announcement

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

  • Adjusting Decimal Places in Stata 17 (collect command)

    Hello,

    I upgraded today to Stata 17 and I am a bit confused.
    I have the below command for preparing my descriptive data but I need to adjust the decimal place to two decimals, however, I am not sure where to place dec(2):

    table (country) (auditfirm), statistic(mean numoffices)
    collect get: table (country) (auditfirm), statistic(mean numoffices)
    collect export MyTable1.docx, as(docx) replace

    Thank you in advance!

  • #2
    it's sufficient to specify format in the collect command,
    Code:
    table (country) (auditfirm), statistic(mean numoffices)
    collect table (country) (auditfirm), statistic(mean numoffices) nformat(%9.2f)
    collect export MyTable1.docx, as(docx) replace

    Comment

    Working...
    X