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
Creating matched-adjusted performance measuresHi everyone, I am new to this forum and I'm hoping that someone can help me. I have a sample of fir…
Comparing interaction effects using "nlcom"Dear Statalisters, In my model, I have two moderation effects which I would like to compare using t…
Calculating timeframes between variables in long formatDear Forum-Users, I have a data set in long format – combining prescription data and dates of doc vi…
Dropping many variables if all observations contain a certain textDear All, I am having trouble with a command in Stata and no matter how much I researched beforehand…
Calculating timeframes between variables in long formatDear Forum-Users, I have a data set in long format – combining prescription data and dates of visits…
Subscribe to:
Post Comments (Atom)
0 Response to Labelling studies in metaprop_one
Post a Comment