vineParameters {vines}R Documentation

Parameters of a Vine

Description

Retrieve or set the parameters of a Vine.

Usage

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

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)

[Package vines version 1.1.5 Index]