Announcement

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

  • Plot mean of one variable for deciles of another variable

    Dear Statalist

    I am trying to plot the mean of one variable for each decile of another variable. For example, I have wealth deciles:
    Code:
    xtile deci = wealth, nq(10)
    and the mean ANC visits for women in each decile:
    Code:
    bysort deci: egen mean_visits = mean(ANC)
    I want to visualize the mean number of ANC visits for women in each wealth decile. How would I implement this in Stata?

    Thank you for your time and help!

  • #2
    Code:
    graph twoway connect mean_visits deci, sort
    is one way to get a simple visualization.

    Comment


    • #3
      Thank you so much, Clyde! This is exactly what I needed. I really appreciate it.

      Comment

      Working...
      X