Description Usage Arguments Value Warning Author(s) References See Also Examples
This function produces one random vector distributed from the multivariate normal distribution N(mu,sig).
1 | rmunorm(mu, sig)
|
mu |
Mean mu of the normal distribution |
sig |
Covariance matrix sig of the normal distribution |
This function returns a real vector of the same dimension as mu.
Similar to dmunorm
,
this function is fragile in that it does not test for
the fact that sig
is a square matrix,
the compatibility of the dimensions of x
, mu
, sig
the symmetry nor the invertibility of the matrix sig
It is therefore prone to fail if those conditions are not satified! If the package
bayesm
can be installed, rmvnorm
is to be prefered to rmunorm
.
Christian P. Robert and George Casella
Chapter 8 of EnteR Monte Carlo Statistical Methods
rnorm,dmunorm,rmvnorm(bayesm)
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.