[R] How to calculate random matrices from the multivariate normal distribution

Duncan Murdoch murdoch at stats.uwo.ca
Fri Jun 17 17:23:52 CEST 2005


On 6/17/2005 11:03 AM, Juan Carlos Quiroz Espinosa wrote:
> Hi R users,
> 
> I am trying to calculate MonteCarlo from the multivariate normal
> distribution. I am utilizing the parameters vector (how mean) and
> covariance matrix (or 1/hessian) how input.  
> 
> Can anyone provide guidance on how I could do this?

You probably want the mvrnorm function from the MASS package.

Duncan Murdoch




More information about the R-help mailing list