Announcement

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

  • Graph Descriptive statistics.

    Hi Stata Users ,

    I'm looking at the relationship between health outcomes of mother(Bmi. and hemoglobin level) and family size. If I graph the relationship I got the graphs below.
    Is there any different way of graphing these so I see more of a relationship between 2 variable? Where both health outcomes and family size are continuous variable.


    Also if dependent variable is an indicator variable how do I graph it with family size?

    Thank you in advance !


    Attached Files

  • #2
    You could use a histogram with by() or a dot plot. (dotplot) with over(). See also stripplot (SSC).

    Comment


    • #3
      Another option is to change the opacity of the markers.

      Here is an example that recreates your problem:

      Code:
      sysuse nlsw88, clear
      twoway scatter wage grade, scheme(s1color)
      Click image for larger version

Name:	Graph.png
Views:	1
Size:	84.7 KB
ID:	1519978

      Here is an example that uses opacity to alleviate it:

      Code:
      twoway scatter wage grade, scheme(s1color) mcolor(%10)
      Click image for larger version

Name:	Graph.png
Views:	1
Size:	204.0 KB
ID:	1519979
      ---------------------------------
      Maarten L. Buis
      University of Konstanz
      Department of history and sociology
      box 40
      78457 Konstanz
      Germany
      http://www.maartenbuis.nl
      ---------------------------------

      Comment

      Working...
      X