Announcement

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

  • meta forestplot: Option to change column heading text

    I am using the following code to generate a forest plot after using meta summarize to meta-analyze proportions (new in Stata 18):

    Code:
    meta forestplot, scheme(s2mono) noosigtest ///
    title("Relapse (any type)")  name(Fig2a, replace) ///
    transform("Proportion":invlogit)
    The plot looks good, the heading over the second column is "Number of successes". But the events are relapses, so I don't want to call them successes! I know there must be an option to change the text in the column headings, but I have not found it yet. Can anyone point me in the right direction or provide an example? Thanks.


    PS- The new default graphics scheme in Stata 18 is stcolor. I see no stmono option, which is why I used s2mono in my code above. For bubble plots, on the other hand, I like s1mono better than s2mono. But I am left wondering why there is no stmono!
    --
    Bruce Weaver
    Email: [email protected]
    Version: Stata/MP 19.5 (Windows)

  • #2
    I do not have Stata 18, but in previous versions the following can be used to change the column titles.

    Code:
    meta forestplot, columnopts(_data, supertitle(Whatever1 Whatever2))
    See example in https://www.statalist.org/forums/for...m-group-labels.

    Comment


    • #3
      Thanks Andrew Musau. I was able to tweak that to get what I needed--I also had to remove a supertitle.

      Code:
      meta forestplot, noosigtest ///
      title("Relapse (any type)")  ///
      transform("Proportion":invlogit) ///
      columnopts(_data, supertitle("") title(Events   N))
      Cheers,
      Bruce
      --
      Bruce Weaver
      Email: [email protected]
      Version: Stata/MP 19.5 (Windows)

      Comment

      Working...
      X