R/post_summary.R

Defines functions .post_summary

.post_summary = function(draws, dimension = 1) {
  smry = function(x) {c(mean = mean(x), lcl.95 = quantile(x, probs=0.025),
                           ucl.95 = quantile(x, probs=0.975))}
  return(apply(draws, dimension, FUN = smry))
}

Try the gigg package in your browser

Any scripts or data that you put into this service are public.

gigg documentation built on March 9, 2021, 5:07 p.m.