builders {brmsmargins} | R Documentation |
Build the Variable Names or Data Objects for Estimation
Description
These are a set of internal utility functions. They are not intended for general use.
Usage
.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)
Arguments
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 |
Details
.namesL
Generate names of an L matrix frombrms
. Create the variable names for the Cholesky decomposition of the random effects correlation matrix inbrms
. Note thatbrms
returns the lower triangular matrix and we want the upper triangular matrix, so the names are transposed. The results can then be passed to thetab2mat
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.
Value
A character vector for all .names
functions or a matrix
for all .build
functions.