post_summary: Get a tidy summary of a bayesian model

Description Usage Arguments Value Examples

Description

Get a detailed summary of your posterior distribution in the tidy data frame format.

Usage

1
2
3
4
post_summary(x, digits = 2, estimate.method = "both", ess = FALSE,
  cred.level = 0.9, cred.method = "QI", keeppars = NULL,
  droppars = c("ySim", "log_lik", "lp__"), knitr = TRUE,
  type = "markdown", ...)

Arguments

x

the set of posterior samples to be summarized

digits

number of digits to round estimates to. Defaults to 2.

estimate.method

one of "mean" or "median", or "both". If "mean" or "median" the estimate will be in column title "estimate". If "both" (the default) the mean will be the "estimate" column and the median will be in the "median" column.

ess

set to TRUE to include ess

cred.level

the credibility level. defaults to 0.90

cred.method

one of "HDI" (highest density intervals) or "QI" (equal tailed \ quantile intervals).

keeppars

the list of specific variables to keep

droppars

list of parameters to exclude

knitr

if you want to return the summary with knitr's kable function set to TRUE. Default is TRUE.

type

output type for kable. Defaults to "markdown"

...

other arguments to pass to knitr::kable

Value

a tibble or knitr::kable output

Examples

1

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.