## Locate MTV-data file "FLEISS93.MTV" in sub-directory of package "meta"
##
filename <- paste(searchpaths()[seq(along=search())[search()==
"package:meta"]], "/data/FLEISS93.MTV", sep="")
##
fleiss93.cc <- read.mtv(filename)
## Same result: example(Fleiss93)
##
metabin(event.e, n.e, event.c, n.c,
data=fleiss93.cc, subset=type=="D",
studlab=paste(studlab, year))
## Same result: example(Fleiss93cont)
##
metacont(n.e, mean.e, sd.e, n.c, mean.c, sd.c,
data=fleiss93.cc, subset=type=="C",
studlab=paste(studlab, year))
Run the code above in your browser using DataLab