Learn R Programming

Distributacalcul (version 0.4.0)

frechet: Fréchet Copula

Description

Computes CDF and simulations of the Fréchet copula.

Usage

cFrechet(u1, u2, dependencyParameter, ...)

crFrechet(numberSimulations = 10000, seed = 42, dependencyParameter)

Value

Function :

  • cFrechet returns the value of the copula.

  • crFrechet returns simulated values of the copula.

Arguments

u1, u2

points at which to evaluate the copula.

dependencyParameter

correlation parameters, must be vector of length 2.

...

other parameters.

numberSimulations

Number of simulations.

seed

Simulation seed, 42 by default.

Details

The Fréchet copula has CDF : $$C(u_{1}, u_{2}) = (1 - \alpha - \beta)(u_{1} \times u_{2}) + \alpha\min(u_{1}, u_{2})% + \beta\max(u_{1} + u_{2} - 1, 0)$$ for \(u_{1}, u_{2}, \alpha, \beta \in [0, 1]\) and \(\alpha + \beta \leq 1\).

Examples

Run this code
cFrechet(u1 = .76, u2 = 0.4, dependencyParameter = c(0.2, 0.3))

crFrechet(numberSimulations = 10, seed = 42, dependencyParameter = c(0.2, 0.3))

Run the code above in your browser using DataLab