Announcement

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

  • marginsplot use variable label in title

    How can I tell marginsplot to use the variable label, instead of the variable name, in the title?

  • #2
    Code:
    webuse nhanes2, clear
    
    local label : variable label agegrp
    
    regress bpsystol agegrp##sex
    margins agegrp
    marginsplot, title(Predictive margins of `label' with 95% CIs)

    Comment


    • #3
      Thanks. Wish there was a way that wouldn't require re-defining title

      Comment


      • #4
        You can write a wrapper for marginsplot that displays the label if it is available.

        Comment

        Working...
        X