Description Usage Arguments Details Value Side Effects References See Also Examples

Produces one or more samples from the specified multivariate normal distribution.

1 |

`n` |
the number of samples required. |

`mu` |
a vector giving the means of the variables. |

`Sigma` |
a positive-definite symmetric matrix specifying the covariance matrix of the variables. |

`tol` |
tolerance (relative to largest variance) for numerical lack
of positive-definiteness in |

`empirical` |
logical. If true, mu and Sigma specify the empirical not population mean and covariance matrix. |

`EISPACK` |
logical: values other than |

The matrix decomposition is done via `eigen`

; although a Choleski
decomposition might be faster, the eigendecomposition is
stabler.

If `n = 1`

a vector of the same length as `mu`

, otherwise an
`n`

by `length(mu)`

matrix with one sample in each row.

Causes creation of the dataset `.Random.seed`

if it does
not already exist, otherwise its value is updated.

B. D. Ripley (1987) *Stochastic Simulation.* Wiley. Page 98.

1 2 3 4 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.