These are a set of internal utility functions. They are not intended for general use.
.namesL(block, number).buildL(data, block, number, dpar)
.namesSD(ranef, block, dpar)
.buildSD(data, ranef, block, dpar)
.namesZ(block, number, dpar)
.buildZ(data, block, number, dpar)
A character vector for all .names functions or a matrix
for all .build functions.
Which random effect block to use. An integer.
The number of elements in that random effect block. An integer.
A data object. For example the result of brms::make_standata()
for .buildZ(), which is a list,
or a dataset of the posterior draws such as from brms::as_draws_df()
for .buildL() and .buildSD().
Which dpar to use. Does not apply to the L matrix.
A data set with information about the model object random effects.
Only used for .namesSD() and .buildSD().
.namesL: Generate names of an L matrix from brms.
Create the variable names for the Cholesky decomposition of the random effects
correlation matrix in brms::brm(). Note that brms::brm() returns the lower
triangular matrix and we want the upper triangular matrix, so the names are
transposed. The results can then be passed to tab2mat()
to convert the row vector into a matrix.
.buildL: Returns the L matrix object. Rows are posterior draws.
.namesSD: Create the names of random effect standard deviation estimates.
.buildSD: Return matrix of random effect standard deviation estimates. Rows are posterior draws.
.namesZ: Create the names of random effects data for predictions.
.buildZ: Return matrix of data for random effect predictions.