View source: R/distributions.R
| new_MULTINORMAL | R Documentation | 
Return a DISTRIBUTION object that draw random numbers from a 
multivariate normal distribution using the mvrnorm function.
new_MULTINORMAL(p_mu, p_sigma, p_dimnames, tol = 1e-06, empirical = FALSE)
| p_mu | a vector of means | 
| p_sigma | a positive-definite symmetric matrix for the covariance matrix | 
| p_dimnames | A character that represents the name of the dimension | 
| tol | tolerance (relative to largest variance) for numerical lack of positive-definiteness in p_sigma. | 
| empirical | logical. If true, mu and Sigma specify the empirical not population mean and covariance matrix. | 
An object of class DISTRIBUTION, MULTINORMAL
John J. Aponte
mvrnorm
msigma <- matrix(c(1,0,0,1), ncol=2)
d1 <- new_MULTINORMAL(c(0,1), msigma)
rfunc(d1, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.