Problem with forest plot

Hello, I am trying to do a forest plot and I have this message:
Error in forest.meta(m.gen, sortvar = TE, predict = TRUE, leftlabs = c("Author", :
argument 3 matches multiple formal arguments

Someone can help me?

think we need a see your code and some sample data.

There are several different packages that will give us a forrest plot so we need to know which one you are using and to have some idea what your data looks like.

These are my data:
Study <chr> "Agren 2012", "Armbruster 2009", "Brocke 2006", "Crisan 2… ES 0.4272, 0.6607, 0.0400, 1.2200, 1.1441, -0.1000, 0.1723, …
CI_lower <dbl> -0.3414, 0.2289, 0.3375, 0.4624, 0.4784, -0.6300, -0.1817… CI_upper 1.1958, 1.0926, 1.0211, 1.9822, 1.8419, 0.4100, 0.5264, 0…
especie <fct> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, … medida 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 2, 0, 2, 1, 0, 3, 1, …
varianza <dbl> 0.153800, 0.048551, 0.062952, 0.150328, 0.120990, 0.07187… error 0.3921734, 0.2203429, 0.2509024, 0.3877215, 0.3478362, 0.…
CS <chr> "visual", "auditivo", "auditivo", "visual", "visual", "vi… clasificacion "bi", "tri", "bi", "bi", "bi", "tri", "bi", "tri", "tri",…
ensayos <dbl> 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, … sujetos 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, …
and the code is:
forest.meta(m.gen,
sortvar = TE,
predict = TRUE,
leftcols = c("Study", "ES"),
leftlabs = c("Author", "Effect size"))

I assume this is library(meta)
predict is not an expected argument/parameter for the function forest.meta
Best guess is that you intended prediction

read about the function and its arguments by typing
?forest.meta in your console

The error message you're receiving is indicating that the function forest.meta() is receiving an argument that matches multiple formal arguments. Specifically, it's saying that argument 3 is causing the issue.

One possible cause of this error is that you're passing an argument to the function that is not correctly named. The forest.meta() function has multiple arguments, and if you're passing an argument with the same name as one of the formal arguments, it could be causing the error.

Another possible cause is that you're passing the wrong number of arguments to the function. Make sure that you're passing the right number of arguments to the function.

You can check the documentation for the forest.meta() function to see all the possible arguments and their names, and make sure that you're passing the correct arguments in the correct order.

It is also possible that the problem is in the data you are using. You should check if the data is consistent and meets the requirements for the function.

Please provide more information about your data and the specific arguments you are passing to the function. It would also be helpful to see the full code you are using.

thank you, it was prediction and not predict :slight_smile: