apply_indices | R Documentation |
Because there are numerous ways of specifying the diagonal and off-diagonal elements of an $OMEGA
or $SIGMA
block in a control stream,
automatically parsing the structure of these blocks can be brittle and error prone. For this reason, indices are not automatically added
to the output of the param_labels()
function and are instead added with the apply_indices()
function.
apply_indices(.label_df, .omega = NULL, .sigma = NULL)
block(.n)
.label_df |
A tibble like the output of |
.omega |
A logical vector indicating whether each Omega parameter is a diagonal. If |
.sigma |
A logical vector indicating whether each Sigma parameter is a diagonal. If |
.n |
The size of the block |
block()
is a helper function for formatting blocks into .omega or .sigma logical vectors.
It takes an integer and returns a logical vector indicating whether each element
of an .n
-sized block with diagonal or not.
For more details and examples of how to specify $OMEGA
and $SIGMA
block structure, see the "Parameter Labels" vignette:
vignette("parameter-labels", package = "bbr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.