uppertri_mult_diag | R Documentation |
nimbleFunction needed when fitting correlated random effects. Generates upper triangular Cholesky factor of covariance matrix ("U" in code) from upper triangular Cholesky factor of correlation matrix ("Ustar" in code) and vector of standard deviations. Taken from the NIMBLE manual, section 5.2.4.1.2 (LKJ Distribution for Correlation Matrices).
uppertri_mult_diag(mat, vec)
mat |
upper triangular Cholesky factor of correlation matrix ("Ustar") |
vec |
vector of standard deviations for individual random effects |
The upper triangular Cholesky factor of the covariance matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.