## A citation matrix of 4 primary studies and 3 meta-analyses
X <- matrix(c(1, 1, 0,
1, 1, 0,
1, 0, 1,
0, 0, 1), ncol=3, byrow=TRUE,
dimnames=list(paste0("Study", 1:4), c("MA1", "MA2", "MA3")))
SEC(X)
## Size-weighted SEC with the sample sizes of the primary studies
SEC(X, method="size", n=c(50, 100, 200, 80))
## Weighted SEC with the sampling variances of the primary studies.
## Since q = 4/n, it equals the size-weighted SEC.
SEC(X, method="weighted", q=c(0.08, 0.04, 0.02, 0.05))
## Second-order meta-analysis of the data in Turk23
## Standard errors of the summary estimates from their 95% CIs
se <- with(Turk23$data, (upper-lower)/(2*qnorm(0.975)))
SEC(Turk23$X, V=se^2)
Run the code above in your browser using DataLab