| generateETA | R Documentation | 
Generate individual random effects from a multivariate normal distribution.
generateETA(n, omegaLT, omega = LTmat(omegaLT), eta.names = colnames(omega))
n | 
 The number of individuals.  | 
omegaLT | 
 A numeric vector giving the elements of the lower triangle of the covariance matrix by row.  | 
omega | 
 The covariance matrix.  | 
eta.names | 
 A character vector of names for each random effect
(defaults to the column names of   | 
An n \times p matrix, where each row contains the vector of random
effects for one individual (p is the size of the covariance matrix).
LTmat
blockdiag
omegaLT <- c(0.123, 0.045, 0.678)
generateETA(10, omegaLT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.