dmvg: Density of multivariate Variance Gamma distribution

View source: R/RcppExports.R

dmvgR Documentation

Density of multivariate Variance Gamma distribution

Description

Computes the density of an observation for a multivariate Variance Gamma distribution.

Usage

dmvg(x, mu, alpha, Sig, gamma, LOG = FALSE)

Arguments

x

A numeric vector of dimension (1 x p).

mu

A (1 x p) numeric vector of location values.

alpha

A (1 x p) numeric vector of skewness values.

Sig

A (p x p) numeric covariance matrix.

gamma

A numeric value for the gamma parameter.

LOG

A logical value indicating if the logarithm of the density is returned (default: LOG = FALSE).

Value

A numeric value of the density of the observation x for the multivariate Variance Gamma distribution with parameters mean, alpha, Sig, and gamma.

Examples

x = c(1.2, 0.4, 0.8)
mu = c(1, 0, 2)
alpha = c(0.2, -0.1, 0.3)
Sig = matrix(c(1.0, 0.5, 0.5,
                0.5, 1.0, 0.5,
                0.5, 0.5, 1.0), nrow = 3, ncol = 3)
gamma = 4
dens = dmvg(x, mu, alpha, Sig, gamma, LOG = FALSE) 
dens

mixture documentation built on Dec. 19, 2025, 1:06 a.m.

Related to dmvg in mixture...