posterior_table | R Documentation |
Create a table for unique values of posterior draws. This is usually only useful when summarizing predictions of ordinal models.
posterior_table(x, levels = NULL)
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 |
A matrix where rows indicate parameters and columns indicate the unique values of posterior draws.
## Not run:
fit <- brm(rating ~ period + carry + treat,
data = inhaler, family = cumulative())
pr <- predict(fit, summary = FALSE)
posterior_table(pr)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.