Learn R Programming

VineCopula (version 1.6-1)

BiCop: Cunstructing BiCop-objects

Description

This function creates an object of class BiCop and checks for family/parameter consistency.

Usage

BiCop(family, par, par2 = 0)

Arguments

family
An integer defining the bivariate copula family: 0 = independence copula 1 = Gaussian copula 2 = Student t copula (t-copula) 3 = Clayton copula 4 = Gumbel copula 5 = Frank
par
Copula parameter.
par2
Second parameter for bivariate copulas with two parameters (t, BB1, BB6, BB7, BB8, Tawn type 1 and type 2; default: par2 = 0). par2 should be an positive integer for the Students's t copula family = 2.

Value

  • An object of class BiCop, i.e., a list containing
  • familyCopula family
  • par, par2Copula parameter(s).
  • Objects of this class are returned by the BiCopEst and BiCopSelect functions.

See Also

BiCopPDF, BiCopHfunc, BiCopSim, BiCopEst, BiCopSelect, plot.BiCop

Examples

Run this code
## create BiCop object for bivariate t-copula
obj <- BiCop(family = 2, par = 0.4, par2 = 6)

## a selection of function that can be used with BiCop objects
simdata <- BiCopSim(300, obj)  # simulate data
BiCopPDF(0.5, 0.5, obj) # evaluate density in (0.5,0.5)
plot(obj)  # normal contour plot

Run the code above in your browser using DataLab