Announcement

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

  • Presenting Individual Characteristics tables

    Hi, I would like to create a table similar to the following:



    I tried to follow the steps found on here (https://blog.stata.com/2021/06/07/cu...table-command/). However, my attempt resulted for the characteristics to be further split for example showing the male and their age as shown here.


    . table Gender Health delta2017

    ------------------------------------
    | delta2017
    | 0 1 Total
    ----------------+-------------------
    Gender |
    male |
    Health |
    very good | 50 153 203
    good | 64 181 245
    fair | 14 31 45
    bad | 4 5 9
    very bad | 1 1
    Total | 132 371 503
    female |
    Health |
    very good | 42 113 155
    good | 55 111 166
    fair | 12 20 32
    bad | 2 2
    very bad | 1 1 2
    Total | 110 247 357
    Total |
    Health |
    very good | 92 266 358
    good | 119 292 411
    fair | 26 51 77
    bad | 4 7 11
    very bad | 1 2 3
    Total | 242 618 860
    ------------------------------------

    .
    Whereas all I want are the gender separate and the Health status separate similar to the screenshot.


    Thanks in advance.
    Kylie

  • #2
    Any feedback please?

    Comment


    • #3
      Nick Cox could you kindly help please?

      I would like to produce a table of different characteristics, I want it to show the percentage of males and females with delta 1 and 0 and the percentage of healthy individuals with delta 1 and 0. But not, the percentage of males healthy like shown in the result.

      Comment


      • #4
        It's possibly doable with the new table but I am not at all expert.

        Comment


        • #5
          I tried with the table command but the characteristics were nested into each other. I also tried baselinetable command but it does not work with weightings. Do you know anyone that can help me please? Thanks in advance

          Comment

          Working...
          X