metacor(cor, n, studlab,
data=NULL, subset=NULL,
sm="ZCOR",
level=0.95, level.comb=level,
comb.fixed=TRUE, comb.random=TRUE,
title="", complab="", outclab="",
byvar, bylab, print.byvar=TRUE
)"ZCOR" or "COR") is to be used for pooling of
studies.event.e).c("metacor", "meta") with corresponding
print, summary, plot function. The object is a
list containing the following components:sm="ZCOR") or correlations (sm="COR") for individual
studies."Inverse"sm="ZCOR")
or direct combination of correlations (sm="COR") (see Cooper et
al., p264-5 and p273-4).Only few statisticians would advocate the use of untransformed correlations unless sample sizes are very large (see Cooper et al., p265). The artificial example given below shows that the smallest study gets the largest weight if correlations are combined directly because the correlation is closest to 1.
Internally, both fixed effect and random effects models are calculated
regardless of values choosen for arguments comb.fixed and
comb.random. Accordingly, the estimate for the random effects
model can be extracted from component TE.random of an object
of class "meta" even if comb.random=FALSE. However, all
functions in R package meta will adequately consider the values
for comb.fixed and comb.random. E.g. function
print.meta will not print results for the random effects
model if comb.random=FALSE.
metacont, metagen, print.metametacor(c(0.85, 0.7, 0.95), c(20, 40, 10))
metacor(c(0.85, 0.7, 0.95), c(20, 40, 10), sm="cor")Run the code above in your browser using DataLab