Hello,
I'm a long time reader of these forums but first time poster! Please forgive me for any mistakes I might make.
I am using metaprop_one to create a forest plot. The plot itself is fine, but the studies are labelled 1,2,3 and so on, rather than by the name of the author and their year of publication like so:
Array
I am using the following code:
metaprop_one num denom, random by(whoregion) cimethod(exact)
label([namevar=author], [yearvar=year])
xlab(.25,0.5,.75,1)xline(0, lcolor(black))
subti(Timing to default, size(4))
xtitle(Proportion,size(2)) nowt
olineopt(lcolor(red)lpattern(shortdash))
plotregion(icolor(ltbluishgray))
diamopt(lcolor(red))
pointopt(msymbol(x)msize(0))boxopt(msymbol(S) mcolor(black))
astext(70) texts(150)
The line in bold is where I believe the problem is. My main concern is that when I download and use the practice data, it does the same thing of numbering the studies rather than giving the author name and year but when I run it out of the help file it works perfectly.
Any help would be greatly appreciated.
Many thanks,
EW
0 Response to Labelling studies in metaprop_one
Post a Comment