rCopula-methods: Copula random generation

Description Usage Arguments Value Functions Examples

Description

Random number generation following the given copula. This function performs the simulation of random vectors following the copula.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
rCopula(n, copula, ...)

## S4 method for signature 'numeric,ConvexCombCopula'
rCopula(n, copula)

## S4 method for signature 'numeric,Cort'
rCopula(n, copula)

## S4 method for signature 'numeric,CortForest'
rCopula(n, copula)

## S4 method for signature 'numeric,cbCopula'
rCopula(n, copula)

## S4 method for signature 'numeric,cbkmCopula'
rCopula(n, copula)

Arguments

n

the number of simulations

copula

the copula object

...

other parameter to be passed to methods for this generic.

Value

A matrix with n rows, each representing a random vector generated from the provided copula.

Functions

Examples

1
2
cop <- cbCopula(cort::clayton_data,m = 5)
xx <- rCopula(1000,cop)

cort documentation built on Jan. 13, 2021, 8:57 p.m.