[R] Error in forest.meta : argument 3 matches multiple formal arguments
Luigi Marongiu
m@rong|u@|u|g| @end|ng |rom gm@||@com
Thu May 26 12:30:12 CEST 2022
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
More information about the R-help
mailing list