stVineCopula: Constructor of the class 'stVineCopula'.

Description Usage Arguments Value Author(s) Examples

View source: R/stVineCopula.R

Description

Construct an instance of the stVineCopula.

Usage

1
stVineCopula(stCop, topCop)

Arguments

stCop

Object of class stCopula. A bivariate spatio-temporal copula.

topCop

Object of class copula. A bivariate, multivariate or R-Vine copula joining the spatio-temporal components (neighbours). In case all trees are spatio-temporal copulas, this argument might be NULL.

Value

An instance of the stVineCopula class.

Author(s)

Benedikt Graeler

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
# a spatio-temporal C-vine copula (with independent copulas in the upper vine)

spCopT0 <- spCopula(components=list(claytonCopula(8), claytonCopula(4), 
                                    claytonCopula(2), claytonCopula(1),
                                    claytonCopula(0.5), indepCopula()),
                    distances=c(0,100,200,300,400,500),
                    unit="km")
spCopT1 <- spCopula(components=list(claytonCopula(4), claytonCopula(2), 
                                    claytonCopula(1), claytonCopula(0.5),
                                    indepCopula()),
                    distances=c(0,100,200,300,400),
                    unit="km")
spCopT2 <- spCopula(components=list(claytonCopula(2), claytonCopula(1), 
                                    claytonCopula(0.5), indepCopula()),
                    distances=c(0,100,200,300),
                    unit="km")

stCop <- stCopula(components=list(spCopT0, spCopT1, spCopT2),
                  tlags=-(0:2))

stVineCopula(stCop, vineCopula(9L))

BenGraeler/spcopula documentation built on Nov. 20, 2020, 4:07 p.m.