Learn R Programming

cylcop (version 0.2.0)

prob,cyl_copula-method: Calculate the C-Volume of a 'cyl_copula' Copula

Description

This is a method corresponding to the generic prob() in the 'copula' package.

Usage

# S4 method for cyl_copula
prob(x, l, u)

Value

A numeric in \([0,1]\), the probability that a draw from the 2-dimensional copula x falls in the rectangle defined by l and u.

Arguments

x

R object of class 'cyl_copula'.

l

numeric vector of length 2 holding the coordinates of the lower left corner in \([0,1]^2\).

u

numeric vector of length 2 holding the coordinates of the upper right corner in \([0,1]^2\).

See Also

copula::prob

Examples

Run this code
cop <- cyl_quadsec(0.1)
prob(cop, l = c(0.1, 0.3), u = c(0.3, 0.9))

Run the code above in your browser using DataLab