Format a block-count posterior distribution as a pretty- table
Source:R/utils.R
pretty_table_K_distribution.RdGiven the output of relabel_by_lambda, this function produces a pretty table
with the posterior distribution of K, the number of blocks induced by the partition x.
It formats the result with knitr::kable and kableExtra::kable_styling.
Usage
pretty_table_K_distribution(
post,
format = "html",
p_min = 0.05,
digits = 3,
latex_options = c("striped", "hold_position")
)Arguments
- post
The output of relabel_by_lambda()
- format
Character string. The format of the output table. Default is "html". Switch to "latex" for a document-ready table.
- p_min
Numeric scalar. Probabilities \(\le\) this threshold are dropped before pivoting. Defaults to
0.05.- digits
Integer passed to
knitr::kablefor rounding. Defaults to3.- latex_options
Character vector of LaTeX options passed to
kableExtra::kable_styling. Defaults toc("striped","hold_position").