data("Rubin1981")
if (FALSE) {
# analysis using a weakly informative half-Cauchy prior:
schools <- bayesmeta(y=Rubin1981[,"effect"], sigma=Rubin1981[,"stderr"],
labels=Rubin1981[,"school"],
tau.prior=function(x){return(dhalfcauchy(x, scale=25))})
# show summary:
summary(schools)
# show shrinkage effect for 8 individual estimates:
schools$theta
traceplot(schools)
}
Run the code above in your browser using DataLab