Announcement

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

  • Survery analysis percentage display format

    Hi,

    I wonder if It's possible to change the format tabulate displays percentages in survey data analysis.
    While without svy tabulate display percentages as part of 100, with svy I get percentages as part of 1. Is it possible to get, even with svy, percentages displayed as a part of 100 ?

    Of course, I know how to manipulate results but since I'm doing a lot of cross-tabulations, It will be more convenient to have the output formatted in the way I need.

    Thanks in advance

  • #2
    Just add "percent" as an option:

    Code:
    webuse nhanes2, clear
    svyset psu [pweight=finalwgt], strata(strata)
    svy: tab race, percent
    Results:
    Code:
    Number of strata = 31                            Number of obs   =      10,351
    Number of PSUs   = 62                            Population size = 117,157,513
                                                     Design df       =          31
    
    ----------------------
         Race | percentage
    ----------+-----------
        White |      87.92
        Black |      9.551
        Other |      2.534
              |
        Total |        100
    ----------------------
    Key: percentage = Cell percentage
    To learn more, use:
    Code:
    help svy: tabulate oneway

    Comment


    • #3
      Originally posted by Ken Chui View Post
      Just add "percent" as an option:

      Code:
      webuse nhanes2, clear
      svyset psu [pweight=finalwgt], strata(strata)
      svy: tab race, percent
      Results:
      Code:
      Number of strata = 31 Number of obs = 10,351
      Number of PSUs = 62 Population size = 117,157,513
      Design df = 31
      
      ----------------------
      Race | percentage
      ----------+-----------
      White | 87.92
      Black | 9.551
      Other | 2.534
      |
      Total | 100
      ----------------------
      Key: percentage = Cell percentage
      To learn more, use:
      Code:
      help svy: tabulate oneway
      I'm embarassed, I searched in the help and I missed that.
      Thanks

      Comment

      Working...
      X