Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73331

Unable to use custom columns in meta forestplot command

$
0
0
Hello fellow Statalist users,

I am attempting to follow the instructions for the new meta forestplot command (https://www.stata.com/manuals/metametaforestplot.pdf) using Stata 16.0. Example 11 (Adding custom columns and overall effect sizes) shows how to include a custom column in the forest plot. When I follow the syntax as below, I receive the error 'latitude is not a valid column identifier' r(198). I receive the same error when I attempt to use other variables as custom columns. Is anyone able to replicate this problem or suggest potential workarounds?

Code:
use https://www.stata-press.com/data/r16/bcgset, clear
local col mcolor("maroon")
meta forest _id _esci _plot _weight latitude, nullrefline columnopts(latitude, title("Latitude")) ///
customoverall(-.184 -.495 .127, label("{bf:latitude = 15}") `col') ///
customoverall(-.562 -.776 -.348, label("{bf:latitude = 28}") `col') ///
customoverall(-1.20 -1.54 -.867, label("{bf:latitude = 50}") `col') rr
Thanks in advance,
Sam Wilding

Viewing all articles
Browse latest Browse all 73331

Trending Articles