Learn R Programming

VineCopula (version 2.5.1)

RVineMatrixSample: Random sampling of R-Vine matrices

Description

Sample R-Vine matrices based on the algorithm of Joe et al. (2011).

Usage

RVineMatrixSample(d, size = 1, naturalOrder = FALSE)

Value

A list of length size with each element containing one R-Vine matrix.

Arguments

d

Dimension of the R-Vine matrices.

size

Number of matrices to sample.

naturalOrder

Should the matrices be in the natural order (default: naturalOrder = FALSE).

Author

Thibault Vatter

References

Joe H, Cooke RM and Kurowicka D (2011). Regular vines: generation algorithm and number of equivalence classes. In Dependence Modeling: Vine Copula Handbook, pp 219--231. World Scientific, Singapore.

See Also

RVineMatrix(), RVineMatrixCheck()

Examples

Run this code
# Matrix and sample sizes
d <- 10
size <- 5

# Sample R-vine matrices
RVM <- RVineMatrixSample(d, size)
sapply(RVM, RVineMatrixCheck)

# Sample R-vine matrices in the natural order
RVM <- RVineMatrixSample(d, size, naturalOrder = TRUE)
sapply(RVM, RVineMatrixCheck)

Run the code above in your browser using DataLab