[R-meta] weights in forest plot
Thank you very much, Wolfgang - this worked very well! (Previously I had not specified the standard error, hence it didn't work...) I have to follow-up questions, however. 1) How can I add a summary polygon to this plot indicating the Mean Weighted Effect Size at the bottom of the plot, as is done automatically when using the forest.rma function? 2) (How) Can I adjust the space between the rows? I am asking as I am producing two different plots for the same study and I would like them to look similar. One of the plots includes a lot more studies than the other one though, and hence the space between the rows varies. Can I change this so that the plots look similar? Again, thank you so much for your help! All the best, Antonia On Wed, 22 Aug 2018 at 12:00, Viechtbauer, Wolfgang (SP) <
wolfgang.viechtbauer at maastrichtuniversity.nl> wrote:
Hi Antonia, This works just fine for me: yi <- c(.23, .55, .33) sei <- rep(.1, 3) ci.lb <- yi - 1.96*sei ci.ub <- yi + 1.96*sei forest(yi, ci.lb=ci.lb, ci.ub=ci.ub, showweights=TRUE, alim=c(0,1), refline=NA) Best, Wolfgang -----Original Message----- From: R-sig-meta-analysis [mailto: r-sig-meta-analysis-bounces at r-project.org] On Behalf Of Antonia Sudkaemper Sent: Wednesday, 22 August, 2018 12:05 To: r-sig-meta-analysis at r-project.org Subject: [R-meta] weights in forest plot Hello metafor users, I am currently making a forest plot for a meta-analysis, I am using forest.default and am using vectors with the effect size, low CI, high CI as input. I have been wondering whether there is a possibility to also display the weights used for each study? A colleague suggested to do this via the little squares that display the effect sizes, but I am not sure how that would work - any ideas? I found the "showweights" function, but when I set it to TRUE all values displayed are "0"- how can I enter a vector with the different weights per study? Thank you very much for your help. All the best, Antonia -- Antonia Sudk?mper PhD Candidate in Organizational Psychology/University of Exeter www.antoniasudkaemper.com a.sudkaemper at gmail.com
Antonia Sudk?mper PhD Candidate in Organizational Psychology/University of Exeter www.antoniasudkaemper.com a.sudkaemper at gmail.com [[alternative HTML version deleted]]