Announcement

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

  • Headings not appearing with coefplot

    Apologies if this is covered somewhere else - I've searched and searched and I can't figure out what I'm doing wrong.

    I'm plotting a multivariate regression graph for a poster of predictors for perineal laceration during delivery. The first time I typed in the coefplot command with all the details and headings, only some of the headings appeared. I then tinkered with my variable and label names, and now none of the headings are appearing. I thought maybe I had too many overall lines of text, but I've seen many more in other posts so I don't think it's that. I've tried adjusting font size and that doesn't seem to make a difference. I'm sure there's a character I've mistyped or something, but I've tried multiple times and just can't get it to show up correctly.

    Any help would be appreciated!

    Commands:
    quietly logit perineal i.age30 i.raceth i.obese i.stage2length i.infant3500
    coefplot, xline(1) eform xtitle(Odds Ratio (adjusted)) xla(, format(%9.0f)) drop(_cons) baselevels headings(age30 = "{bf:Age > 30}" i.raceth = "{bf:Race & Ethnicity}" obese = "{bf:Obesity}" i.stage2length = "{bf:Duration of 2nd stage}" infant3500 = "{bf:Infant weight}") mlabel format(%9.1f) mlabposition(2) mlabgap(*2) msymbol(d) title(Associations with Perineal Laceration)

    Output graph attached, which doesn't have headings for variable labels.
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	62.1 KB
ID:	1753169
    Last edited by Rachel Flink; 13 May 2024, 07:46.

  • #2
    I finally figured it out. I needed to include number levels for the heading locations so they would appear (so 0.age30, 0.raceth, 1.stage2length, etc). Leaving this up in case it helps someone else avert frustration in the future.

    Comment

    Working...
    X