Announcement

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

  • Omit one group from -marginsplot- after -proportions-

    I am using -proportions- to estimate the proportion of children who had normal weight, overweight, or obesity, in various years after 2012.
    I'm using -marginsplot- to plot the estimates. My results and graph are attached.

    Results are correct, but I'd like -marginsplot- to only show the estimates for overweight and obesity, not normal weight. How can I do that? Thanks!
    Attached Files

  • #2
    Can't you do something like

    Code:
    svy : proportion i(1 3).BMIcat_CDC , over(yr_test)
    marginsplot , xdimension(yr_test)
    i.e., restrict the estimated proportions to the categories you want (1 and 3 in this example, because I have no way of knowing how your variables are coded)?

    Comment


    • #3
      That did it, thanks!

      Comment

      Working...
      X