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
Related Posts with Labelling studies in metaprop_one
Matrix not found error after just listing the matrixDear All, Sorry for a very lengthy post, but I am trying to explain the problem comprehensively. I a…
Reshaping data for tabplotArray Hello, How do I reshape the following data to be able to use the tabplot command? Basically I…
command tabcount is unrecognizedHi everyone, I'm learning stata these days. I was trying to use tabcount but I get the following err…
fractional probit with sample selection using CMPHello everyone! I am planning to run a fractional response model with sample selection. I wonder if …
Applying weights to mixed-effects logistic regression modelHello Statalist, I am trying to add weights to my mixed-effects logistic regression model. I could …
Subscribe to:
Post Comments (Atom)
0 Response to Labelling studies in metaprop_one
Post a Comment