vineParameters: Parameters of a Vine

Description Usage Arguments Examples

Description

Retrieve or set the parameters of a Vine.

Usage

1
2
vineParameters(vine)
vineParameters(vine) <- value

Arguments

vine

A Vine object.

value

Vector with the parameters of the copulas in the pair-copula construction. This vector is the result of the concatenation of the parameters slots of the copula objects in the copulas slot of the Vine object (by rows).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
dimension <- 5
copulas <- matrix(c(list(tCopula(-0.25, df = 2),
                         tCopula(-0.5, df = 4),
                         tCopula(0.25, df = 6),
                         tCopula(0.5, df = 8)),
                    rep(list(NULL), 12)),
                  ncol = dimension - 1, 
                  nrow = dimension - 1,
                  byrow = TRUE)
vine <- DVine(dimension = dimension, trees = 1, 
              copulas = copulas)
dimnames(vine) <- c("A", "B", "C", "D", "E")

vineParameters(vine)
show(vine)

vineParameters(vine) <- c(-0.25, 3, -0.5, 5, 0.25, 7, 0.5, 9)

vineParameters(vine)
show(vine)

yasserglez/vines documentation built on June 9, 2021, 10:06 a.m.