Announcement

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

  • repeated colnames in svy : tabulate output

    Code:
    webuse nhanes2, clear
    xtile h12 = height , n(12)
    xtile bp12 = bpsystol + bpdiast  , n(12)
    svy : tab h12 bp12, count se format(%12.0fc)
    mat li e(b)
    di colnumb(e(b), "p111")
    Well there are two entries labeled `p111`. That is not great, and `colnumb()` is confused here. I suspect that Stata always does something by position, el(e(b), 1, (row-1)*(# of columns) + column) ), rather than by subscripting. But this is unsettling.

    (In general, `svy tabulate` is the most hideous of estimation commands. And it is not even an estimation command without the `svy` prefix.)
    -- Stas Kolenikov || http://stas.kolenikov.name
    -- Principal Survey Scientist, Abt SRBI
    -- Opinions stated in this post are mine only

Working...
X