Announcement

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

  • Asdoc: format percentage in table

    Hi all,

    I wonder if it´s possible format percentage in a table with asdoc. I mean display percentage in bold text or parentheses:

    Code:
    use "http://www.stata-press.com/data/r16/hospital.dta", clear
    
    ssc install asdoc
    
    asdoc tab  illness satisfied, row
    Click image for larger version

Name:	1.png
Views:	1
Size:	17.7 KB
ID:	1594366



    My question is if its possible get this kind of table:
    Click image for larger version

Name:	2.png
Views:	1
Size:	20.2 KB
ID:	1594367

    Click image for larger version

Name:	3.png
Views:	1
Size:	21.6 KB
ID:	1594368

    Last edited by Rodrigo Badilla; 21 Feb 2021, 16:47.

  • #2
    You might try the user-written command table1_mc. It can put percentages in brackets after n, e.g. 37 (23.42%)
    https://www.statalist.org/forums/for...r-a-manuscript

    Comment


    • #3
      This might be done in asdoc but I think asdocx should be the focus of my development efforts (Here is why I say so). I hope those who used and enjoyed asdoc will support the development of asdocx as well. Right now, the membership fee of asdocx is negligible ($9.99) with life-time license and I set it like this so that no one finds asdocx costly. However, this fee will keep further development of asdoc(x) alive.
      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


      • #4
        Thanks Mark Chatfield I will try table1_mc.This is exactly what I need, looks very fine!

        Regards
        Rodrigo

        Comment


        • #5
          Thanks Attaullah Shah for you reply. I will take in consideration your reply.

          Comment

          Working...
          X