Announcement

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

  • Setting frequencies and percentages to be on same row using asdoc

    Hello Statalist community,

    I am struggling with a minor formatting issue when I use the asdoc package to create descriptive tables. I wish to create a table with descriptive summary statistics where the frequencies are on the same row. By default, the program generates a table where the first row has frequencies and second row has column percentages. What I mean is that the code below
    Code:
     sysuse nlsw88, clear
      asdoc tab race married, replace col
    yields the table below:
    Click image for larger version

Name:	Delete.png
Views:	1
Size:	25.6 KB
ID:	1539752

    I am hoping that someone here might be able to offer some ideas on how to make the percentage appear to the right of or in the column next to the corresponding frequency. I consulted the help file of the package and I could not identify a solution. Any suggestions are appreciated. Thanks


  • #2
    I am hoping someone has this answer perhaps? I too am trying to figure out creating simple tables where the frequency and percentage appear in one row for each category. I cannot find how to do this as the table command seems to only allow the percentages and frequencies to be on different rows?
    For example in this table presented, I would like to create a table that says:
    single married total
    white 487 (60.57%) 1150 (79.75%) 1637
    Please advise and thanks!

    Comment


    • #3
      See https://www.statalist.org/forums/for...=1661363137211

      Comment

      Working...
      X