dmdistr: Copula density Function for multivariate data

Description Usage Arguments Value References Examples

View source: R/copulafunctions.R

Description

This function returns the value of a multivariate density defined on a gaussian copula

Usage

1
dmdistr(x, params, corr = diag(ncol(x)), distr)

Arguments

x

a n x d matrix containing the multivariate data

params

a list of D elements corresponding to the matrices corresponding to the parameters:

corr

a matrix containing the correlation parameters of the multivariate distribution related to the states of the HMM;

distr

a vector containing the distribution for each component, "gaussian" for the normal distribution, "gamma" for the gamma distribution, "exp" for the exponential distribution

Value

The function returns a numeric value corresponding to the value of the density of the multivariate distribution where the dependence is computed using a copula.

References

Song, P. X.-K.(2000). Multivariate dispersion models generated from Gaussian copula. Scandinavian Journal of Statistics, 27(2), 305-320.

Examples

1
2
3
4
5
6
7
#Load the copuladata
data(copuladata)
params <- list(t(c(1.5, 1)), as.matrix(0.5))
corr <- cbind(c(1,0.7), c(0.7,1))
distr <- c("gaussian", "exp")

density <- dmdistr(copuladata, params = params, corr = corr, distr = distr)

hmmhdd documentation built on Sept. 4, 2019, 5:03 p.m.

Related to dmdistr in hmmhdd...