integratemvn | R Documentation |
Used in the process of Monte Carlo integration over multivariate normal random effects. This generates the random draws from the multivariate normal distribution and multiplies these by the data. Not intended to be called directly by most users.
integratemvn(X, k, sd, chol) integratemvnR(X, k, sd, chol)
X |
A numeric matrix of the data to be multiplied by the random effects |
k |
An integer, the number of random samples to be used for numerical integration |
sd |
A numeric vector of the standard deviations |
chol |
A numeric matrix, which should be the Cholesky decomposition of the correlation matrix of the multivariate normal distribution. |
A numeric matrix with random values
integratemvnR
: Pure R
implementation of integratemvn
integratemvn( X = matrix(1, 1, 2), k = 100L, sd = c(10, 5), chol = chol(matrix(c(1, .5, .5, 1), 2))) integratemvn(matrix(1, 1, 1), 100L, c(5), matrix(1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.