rCop: Random number generator for Archimedean copula class objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Random number generator for archm class objects.

Usage

1
rCop(n, copula)

Arguments

n

number of realisations.

copula

an Archimedean copula (archm) class object.

Details

For bivariate archm copula objects, the function uses the conditional approach. As for dimensions higher than 2, the Marshall-Olkin (1988) approach is chosen instead.

Value

A numeric matrix containing the samples.

Author(s)

Simon-Pierre Gadoury

See Also

pCop, Clayton, AMH, Frank, Gumbel

Examples

1
2
3
4
5
6
7
8
## Create the trivariate archm copula object
cop <- Clayton(5, 3)

## Generate the samples
res <- rCop(10000, cop)

## Plot the values
pairs(res, pch = 16, cex = 0.7)

Spgadou/nCopula documentation built on May 9, 2019, 1:53 p.m.