Announcement

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

  • Plotting a graph of odds ratios

    Hi,

    I am trying to make a graph of odds ratios of suicide (y-axis) per education level (Primary, Secondary, Tertiary) and per five-year period (x-axis).

    Code:
    coefplot four five six seven eight nine, nooffsets vert base drop(_cons) ytitle(Odds ratio) ciopts(recast(rcap))
    At the moment this is my coefplot-code. Four, five, six etc are my stored estimates, which are the odds ratios for education levels and each estimate is a five-year period. I would like to change the code so that the estimates/five year periods are on the x-axis and not the education levels!
    Click image for larger version

Name:	education.png
Views:	1
Size:	9.6 KB
ID:	1315364

    So the opposite of what I have now! I feel like this is so easy but right now I have been looking at this for hours and can't figure it out. Help?

    (Edit: I do have eform in my code too, btw.)
    Last edited by karolinelien; 04 Nov 2015, 06:39.

  • #2
    Bump.

    Here is a new updated graph, I am still having problems.

    I just want to switch the four/five/six etc. and the education levels around basically. So four/five/six etc is on the x-axis and education levels presented per four/five/six. I would think this could be included in the coeffplot-code somehow?


    Comment


    • #3
      Your chances of an answer would be increased if you included a reproducible example. See section 12 in the FAQ.

      Comment


      • #4
        Seconded Friedrich Huebler. The file is not uploaded code; it's the result of improved code. As a result it's unclear what problems you were facing. Also, because of so many academic conventions, I'd recommend you use a monochromanitic graphics scheme (if you're inserting it in a manuscript for academic publication).
        Nathan E. Fosse, PhD
        [email protected]

        Comment

        Working...
        X