### load data
data(dat.mcdaniel1994)
### calculate r-to-z transformed correlations and corresponding sampling variances
dat <- escalc(ri=ri, ni=ni, measure="ZCOR", data=dat.mcdaniel1994)
dat
### meta-analysis of the transformed correlations using a random-effects model
res <- rma(yi, vi, data=dat)
res
### average correlation with 95\% CI
predict(res, transf=transf.ztor)
### mixed-effects model with interview type as factor
### note: job-related interviews is the reference level
rma(yi, vi, mods=~factor(type), data=dat)
### mixed-effects model with interview structure as factor
### note: structured interviews is the reference level
rma(yi, vi, mods=~factor(struct), data=dat)
### note: the interpretation of the results is difficult since all
### situational interviews were structured, almost all psychological
### interviews were unstructured, and actually for the majority of
### the psychological interviews it was unknown whether the interview
### was structured or unstructured
table(dat$type, dat$struct, useNA="always")
### meta-analysis of raw correlations using a random-effects model
res <- rma(ri=ri, ni=ni, measure="COR", data=dat)
res
Run the code above in your browser using DataLab