summarise_posterior: Convert a vector of posterior sample to a dataframe

Description Usage Arguments Value

View source: R/tidy_summarise.R

Description

Convert a vector of posterior sample to a dataframe

Usage

1
summarise_posterior(x, func, conf_level)

Arguments

x

a vector or matrix of posterior samples for some parameter

func

the summary functions to evaluate, as a character vector

conf_level

the confidence levels to report confidence intervals in. Set as NULL to have no confidence intervals.

Value

A tibble where each row is one sample of one parameter, with a column for which draw the sample came from ('draw') and a column for which index of the parameter the draw is for ('i'). (For this case, the function is always )


wjones127/tidystan documentation built on May 28, 2017, 4:36 a.m.