EstPhiNestedGumbel"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(VecDep)

First, let us fix some parameters.

q = 4
dim = c(2,2)
n = 1000

Construct a four dimensional hierarchical Gumbel copula with parameters (theta_0,theta_1,theta_2) = (2,3,4)

hac = gethac(dim,c(2,3,4),type = 1)

Draw a sample of size n from the copula

sample = suppressWarnings(HAC::rHAC(n,hac))

Estimate the mutual information between two random vectors of size two via pseudo maximum likelihood estimation

estphi(sample,dim,list("hac",type = 1,M = 10000),function(t){t * log(t)})


Try the VecDep package in your browser

Any scripts or data that you put into this service are public.

VecDep documentation built on April 4, 2025, 5:14 a.m.