Announcement

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

  • test post

    However, if I restrict the code to summary stats such as mean and SD. The customized labelling works. Once I add ratio stats like proportion or percent, the customized labels AND the variable labels appear.
    This is the code from the blog, slightly modified.

    Code:
    webuse nhanes2l , clear
    collect clear
    collect dims
    
    
    table (sex) (highbp), ///
    statistic(frequency) ///
    statistic(percent) /// statistic(mean age) /// statistic(sd age) /// nototals /// nformat(%9.0fc frequency) /// nformat(%6.2f mean sd) /// sformat("%s%%" percent) /// sformat("(%s)" sd)
    collect dims collect preview collect label levels highbp 0 "No" 1 "Yes" collect label dim highbp "Hypertension", modify collect preview collect label list result, all /* This is the start of where I don't get the desired results */ collect label levels result frequency "Freq." ///
Working...
X