Announcement

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

  • Quick question on "marginsplot, by()" title options

    Hello all,

    As indicated in the title, I am running a model followed by the margins command and I am then using the marginsplot command to graph it. I am also using the "by()" option to create separate graphs by a categorical variable. However, the result is that there is a new title that appears "Predictive Margins of [cat variable]". Even if I use the ti("") option, this title remains. Actually, in this context, the ti("") option seems to control a title on top of each subgraph.

    The syntax is more complicated than this, but as a simple example, here is what it would look like:

    Code:
    sysuse auto
    logit foreign c.price##rep78
    margins rep78, at(price=(3000(1000)5000))
    marginsplot, by(rep78) ti("")
    How do we control the overall title from the syntax as opposed to opening the graph editor?

    Thank you!
    Jean-Philippe

  • #2
    You may try the option - byopt(tittle(“”)) - but I didn’t test it since I’m not with ‘my’ Stata at this very moment.
    Best regards,

    Marcos

    Comment


    • #3
      Oh that worked! Thank you so much.

      Comment


      • #4
        Thank for the feed back of for stating your query was solved. Just for the sake of clarity, there is a type in my command: the word "title" got an extra "t". Therefore, the option is: byopt(title(“”))
        Best regards,

        Marcos

        Comment

        Working...
        X