library(metafor)
# Calculating a random-effects model based on the mozart data
mozart_r <- rma(yi = d,
sei = se,
data = mozart,
method = "REML")
# Plotting the wineq baujat plot based on the mozart data
# using a matrix as input
wineq_baujat(x = mozart[, c("d", "se")])
# using a rma.uni model as input
wineq_baujat(x = mozart_r)
# Adding study name labels to the right-most studies on the x-axis and
# determining how many studies shall be labeled
wineq_baujat(x = mozart_r, labs = mozart$study_name, nr_labs = 5)
Run the code above in your browser using DataLab