require(metafor)
require(mada)
data(cervical)
LAG <- cervical[cervical$method==2,]
fit1 <- reitsma(LAG)
summary(fit1) # results of the bivariate meta-analysis
###
attach(LAG)
dta1 <- edta(TP,FN,TN,FP)
oldpar <- par(mfrow=c(1,1))
par(mfrow=c(1,3))
plot(fit1, predict=TRUE, cex=1.5, pch=19, sroclty=1, sroclwd=1.5, lty=2,
main="(a) SROC plot", xlim=c(0,1), ylim=c(0,1))
points(dta1$Fp,dta1$Se,pch=20,col="blue")
#legend(0.4,0.1,legend=c("95% confidence region","95% prediction region"),lty=c(2,3))
###
attach(dta1)
res1 <- rma(y[,1], S[,1])
funnel(res1,main="(b) Funnel plot for logit(Se)")
regtest(res1, model="lm") # univariate Egger's test
res2 <- rma(y[,2], S[,3])
funnel(res2,main="(c) Funnel plot for logit(FPR)")
regtest(res2, model="lm") # univariate Egger's test
###
MVPBT3(y,S,B=20) # Generalized Egger test (MSSET3)
# This is an example command for illustration. B should be >= 1000.
par(oldpar) # Reset the graphic parameter
Run the code above in your browser using DataLab