Create a table for unique values of posterior samples. This is usually only useful when summarizing predictions of ordinal models.
posterior_table(x, levels = NULL)
A matrix of posterior samples where rows indicate samples and columns indicate parameters.
Optional values of possible posterior values.
Defaults to all unique values in x
.
A matrix where rows indicate parameters and columns indicate the unique values of posterior samples.
# NOT RUN {
fit <- brm(rating ~ period + carry + treat,
data = inhaler, family = cumulative())
pr <- predict(fit, summary = FALSE)
posterior_table(pr)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab