Luigi Marongiu
2022-May-26 10:30 UTC
[R] Error in forest.meta : argument 3 matches multiple formal arguments
Hello, I am using the package meta to plot a forest plot. My data looks like this: ``` X Entry Cases Ca_pos Controls Co_pos Method Tissue Disease Virus Set 6 de Villiers, 2007 82 72 82 61 PCR colon/rectum cancer TTV 3 7 de Villiers, 2002 162 38 0 0 ISH colon/rectum cancer TTV 3 15 Li , 2007 37 35 37 25 ISH colon/rectum cancer Parvo B19 3 19 Pironi, 2009 8 4 0 0 PCR colon/rectum cancer Parvo B19 3 ``` but I get this error: ``` m10 = metabin(Ca_pos,Cases,Co_pos,Controls, sm="OR", method="MH", fixed=FALSE, studlab=Entry, data=X) forest(m10, sortvar = TE, predict = TRUE, print.tau2 = TRUE, allstudies = FALSE, layout = "RevMan5")> Error in forest.meta(m10, sortvar = TE, predict = TRUE, print.tau2 = TRUE, :argument 3 matches multiple formal arguments ``` What am I getting wrong? How can I solve it? -- Best regards, Luigi
Ivan Krylov
2022-May-26 10:38 UTC
[R] Error in forest.meta : argument 3 matches multiple formal arguments
? Thu, 26 May 2022 12:30:12 +0200 Luigi Marongiu <marongiu.luigi at gmail.com> ?????:> > Error in forest.meta(m10, sortvar = TE, predict = TRUE, print.tau2 > > = TRUE, : > argument 3 matches multiple formal argumentsLook at help(forest.meta). There are multiple possible parameters that start with "predict" (prediction, prediction.subgroup), so they both partially match your "predict" argument (which is the third one in the call). R doesn't know which one you meant. -- Best regards, Ivan