View source: R/lowerdiag2mat.R
Storing just the lower diagonal is an efficient way to store MCMC samples of
a matrix (and, in fact, is how matrices are stored by the samplers in
fit_mvnorm()
and fit_mvnorm_hier()
).
1 2 | lowerdiag2mat(vec, col_names = TRUE, corr = FALSE, colorder = NULL,
hier = FALSE)
|
vec |
Vector of lower diagonal values |
col_names |
(Logical) If |
corr |
(Logical) If |
colorder |
Optional numeric or character vector specifying the desired column order. |
hier |
(Logical) Whether the vector names also include a group name.
Only used if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.