## execute analysis
if (FALSE) {
# Comparing results from two models same data
data(glas)
glas.t <- glas[glas$marker == "Telomerase", 1:4]
glas.m1 <- metadiag(glas.t)
glas.m2 <- metadiag(glas.t, re = "sm")
plotcompare(m1 = glas.m1, m2 = glas.m2)
# Comparing results from two models fitted to two subgroups of data:
# studies with retrospective design and studies with prospective design
data("ct")
ct$design = factor(ct$design, labels = c("Prospective", "Retrospective"))
m1.ct <- metadiag(ct[ct$design=="Prospective", ])
m2.ct <- metadiag(ct[ct$design=="Retrospective", ])
plotcompare(m1.ct, m2.ct,m1.name = "Retrospective design",
m2.name = "Prospective design",group = "design",
limits.x = c(0, 0.75), limits.y = c(0.65, 1))
}
Run the code above in your browser using DataLab