Description Usage Arguments Details Author(s) Examples
View source: R/distributions.r
This is an alternative parameterization of the ordinary multivariate Gaussian probability density.
1 2 3 |
x |
Values to compute densities of |
Mu |
Mean vector |
sigma |
Vector of standard deviations |
Rho |
Correlation matrix |
log |
If |
n |
Number of random observations to sample |
These functions merely compose the variance-covariance matrix from separate standard deviation and correlation matrix arguments. They then use dmvnorm
and rmvnorm
from the mvtnorm
package to perform calculations.
Richard McElreath
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.