Description Usage Arguments Value Examples
View source: R/draw.d.variate.normal.R
This function implements pseudo-random number generation for a multivariate normal distribution with pdf
f(x|μ,Σ)=c\exp{(-\frac{1}{2}(x-μ)^{T}Σ^{-1}(x-μ))}
for -∞ < x < ∞ and c=(2π)^{-d/2}|Σ|^{-1/2}, Σ is symmetric and positive definite, where μ and Σ are the mean vector and the variance-covariance matrix, respectively.
1 | draw.d.variate.normal(no.row,d,mean.vec,cov.mat)
|
no.row |
Number of rows to generate. |
d |
Number of variables to generate. |
mean.vec |
Vector of means. |
cov.mat |
Variance-covariance matrix. |
A no.row \times d matrix of generated data.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.