Announcement

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

  • Bar graph of proportion over the years

    I have two questions to clarify.

    First question is how to show the proportion using graph bar, if the only commands available are mean median p1 p2 ... p99 sum count percent min max under the stat command. Do I use percent or count to show the proportion?

    Next question is the years in the x-axis is clumped up for my graph, is there a solution to remedy this?

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	4.7 KB
ID:	1612522



  • #2
    Let's guess that you have a 0, 1 variable, say 0 for male and 1 for female Then the proportion female is just the mean. So, if you have 10 in a sample 0 0 0 1 1 1 1 1 1 1 with 3 zeros and 7 ones the total is 7 and the mean is 0.7, which is what you want. If this doesn't answer your question, please explain how your problem differs.

    The second question is addressed in detail at https://journals.sagepub.com/doi/pdf...6867X211000032

    Comment

    Working...
    X