Questions tagged [metafor]

The metafor package is a free and open-source add-on for conducting and visualizing meta-analyses with the statistical software environment R.

The metafor package is a free and open-source add-on for conducting meta-analyses with the statistical software environment R. The package consists of a collection of functions that allow the user to calculate various effect size or outcome measures, fit fixed-, random-, and mixed-effects models to such data, carry out moderator and meta-regression analyses, and create various types of meta-analytical plots.

210 questions
7
votes
1 answer

Meta-analysis: Forest plot of summary estimates using metafor package

I am meta-analysing data from ~90 studies. This presents some challenges in how to display the data in an accessible format for publication. I would like to display only the overall effect size estimates of the different meta-analyses and exclude…
ChrisP
  • 119
  • 1
  • 8
5
votes
1 answer

'relevel' only works with (unordered) factors

library(pacman) pacman::p_load(metafor,readxl,metaviz,MetaAnalyser,rio) #library(readxl,metaviz,MetaAnalyser,rio) #Effektstärke Bor1 <- data.frame(read_excel("Borenstein_1.xls")) Bor1 <- escalc(measure = "SMD", m1i=mw.t, m2i = mw.c, sd1i = sd.t,…
4
votes
1 answer

Fitting multivariate (multilevel) model with 200 effect sizes (rma.mv with optimParallel) fails in metafor

I have a the following data structure, with approx. studies i = 50, experiments j = 75 and conditions k = 200. On level k I have dependent measures. For about 20 studies (25 experiments and 65 conditions) I have data on subject level and calculated…
grszkthfr
  • 43
  • 5
4
votes
1 answer

Adding Labels in Scientific Notation to Forest Plots Using the metafor package

So I'm doing a meta-analysis using the meta.for package in R. I am preparing figures for publication in a scientific journal and i would like to add p-values to my forest plots but with scientific annotation formatted as x10-04 rather than standard…
3
votes
1 answer

R - Meta-Analysis - How to create a forest plot with robust estimates from clubSandwich functions

I have a quick question about displaying robust estimates in a forest plot. I am using rma.mv() from the metafor package to fit a multilevel random-effects model. For robust estimates, I use the conf_int() and coef_test() functions from the…
fuestro
  • 45
  • 5
3
votes
0 answers

I keep getting the error "..." is not a graphical parameter?

I am trying to create a forest plot in R using the forest() function from the metafor package. I refer to the documentation on R's website for all of the arguments that I can add to this function. Currently this is my code: forest(dat.back$yi,…
aspire94
  • 131
  • 1
  • 3
3
votes
1 answer

How to add text to forest plots

I am trying to create a forest plot using this dataframe with three columns: studies is the name of the study, n is the number of samples in the study and accuracy is % accuracy: > dput(for.meta) structure(list(studies = structure(c(11L, 5L, 13L,…
Komal Rathi
  • 4,164
  • 13
  • 60
  • 98
3
votes
0 answers

Error Message Slicer stuck at value with infinite density

I am still green in handling Bayesian methods. In a bit to run Bayesian Analysis with a random effect on a real data , I encountered the following error "slicker stuck at value with infinite density", I tried altering the starting values of the…
mymymine
  • 49
  • 7
3
votes
2 answers

Avoid warnings from FALSE part of ifelse()

I created a user function that computes Hedges' c() bias correction for g (Hedges, 1981). It is directly based on metafor::.cmicalc() function from library(metafor). It does this: hedges_c <- function(df) { return(exp(lgamma(df / 2) - log(sqrt(df…
iNyar
  • 1,916
  • 1
  • 17
  • 31
3
votes
1 answer

Adding gaps in data for forest plot in metafor

I'm new to R and working on creating a forest plot with a data set using the metafor package's forest.default implementation ( I only have the x, ci.ub and ci.ub in the data for the forest plot) I'm almost done and my plot looks similar to this,…
rushsangs
  • 116
  • 1
  • 8
3
votes
1 answer

Metafor Forest Plots - Changing Colour

Is there a way to change the colour of complete rows in a forest plot based on text? For example, in the plot below, I'd like to be able to have four different row colours, one for each of DEF, RU, MID & FWD in the Player column.
Morts81
  • 419
  • 3
  • 13
2
votes
1 answer

Extract all possible combinations of rows with unique values in a variable

I am trying to perform a meta-analysis on a dataset in which multiple authors have multiple studies which might cause bias. Therefore, I want to extract all the possible combinations of rows, in which any Author appears once. Sample data: sample <-…
SteveMcManaman
  • 391
  • 1
  • 17
2
votes
1 answer

metafor provides 95%CI that are different from the original values

I am using metafor package for combining beta coefficients from the linear regression model. I used the following code. I supplied the reported se and beta values for the rma function. But, when I see the forest plot, the 95% confidence intervals…
user115916
  • 186
  • 11
2
votes
1 answer

Why did the Fisher scoring algorithm not converge after adjusting?

We are using the the metafor package for meta analysis. In one of our analyses we got the error: Fisher scoring algorithm did not converge We tried using this code to adjust it: res <- rma(yi, vi, data=dat, (control = list(stepadj = 0.5))) It…
Anat
  • 21
  • 2
2
votes
1 answer

Combining forest plot and traffic light plot in meta-analysis using R

The software Revman produces a combination of forest plots and traffic light plots in meta-analyses (see e.g. doi: http://dx.doi.org/10.1136/bmjopen-2018-024444, Fig. 3). I am using the package meta fot meta-analysis and robvis for risk of bias.…
ehi
  • 409
  • 8
  • 23
1
2 3
13 14