# NOT RUN {
N <- 100
N_post <- 1e3
truth <- rep(0, N)
post_samples <- sapply(rnorm(N, 0, 1), function(x) {rnorm(N_post, x, 1)})
compute_coverage(post_samples, truth)
plot_coverage(post_samples, truth)
# }
Run the code above in your browser using DataLab