mvgamma: Multivariate gamma function

View source: R/mvgamma.R

mvgammaR Documentation

Multivariate gamma function

Description

The multivariate gamma function is computed by using it's recursive definition or product form. Use apply() on top of the mvgamma function if p is also a vector.

Usage

mvgamma(p, x, log = TRUE)

Arguments

p

"integer". The dimension of the multivariate gamma function.

x

"vector" A vector or sclor can be used. See also gamma() function.

log

"logical" If TRUE, logarithm of multivariate gamma function will be returned.

Value

Same length as "x" has.

Note

Initial: Mon Sep 20 23:54:20 CEST 2010; Current: Tue Jan 15 18:56:48 CET 2013.

TODO: Allow p be a vector of same length of x

Author(s)

Feng Li, Department of Statistics, Stockholm University, Sweden.


thiyangt/fformpp documentation built on Jan. 5, 2024, 5:44 a.m.