builders | R Documentation |
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)
block |
Which random effect block to use. An integer. |
number |
The number of elements in that random effect block. An integer. |
data |
A data object. For example the result of |
dpar |
Which dpar to use. Does not apply to the L matrix. |
ranef |
A data set with information about the model object random effects.
Only used for |
.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
. Note that brms
returns the lower triangular matrix and we want the upper triangular matrix, so the names are transposed. The results can then be passed to the tab2mat
function 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.
A character vector for all .names
functions or a matrix
for all .build
functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.