| hypvoltmvnorm | R Documentation |
Approximate the hypervolume of a multivariate dataset by assuming a truncated multivariate normal (TMVN) distribution within given radius.
hypvoltmvnorm(data, radius = NULL, ...)
data |
A numeric vector, matrix, or data frame. If a matrix or data frame, rows correspond to observations and columns correspond to variables. Categorical variables and missing values are not allowed. |
radius |
A numerical value specifying the radius to be used for
truncating the multivariate Gaussian distribution. If not provided
is set to |
... |
Further arguments passed to or from other methods. |
Returns a list with the following components:
sigma The estimated covariance matrix.
radius The radius used for computation.
logvol The log of hypervolume.
logdens The smallest log-density for observed data points within the
radius.
Luca Scrucca
x1 = rnorm(1000)
x2 = 0.8*x1 + rnorm(1000)
x = cbind(x1, x2)
hypvoltmvnorm(x, radius = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.