posterior_table: Table Creation for Posterior Draws

Description Usage Arguments Value Examples

View source: R/summary.R

Description

Create a table for unique values of posterior draws. This is usually only useful when summarizing predictions of ordinal models.

Usage

1

Arguments

x

A matrix of posterior draws where rows indicate draws and columns indicate parameters.

levels

Optional values of possible posterior values. Defaults to all unique values in x.

Value

A matrix where rows indicate parameters and columns indicate the unique values of posterior draws.

Examples

1
2
3
4
5
6
7
8
## Not run: 
fit <- brm(rating ~ period + carry + treat, 
           data = inhaler, family = cumulative())
pr <- predict(fit, summary = FALSE)
posterior_table(pr)

## End(Not run)
 

brms documentation built on Aug. 23, 2021, 5:08 p.m.