Density of a Bivariate Copula
This function evaluates the probability density function (PDF) of a given parametric bivariate copula.
BiCopPDF(u1, u2, family, par, par2 = 0, obj = NULL, check.pars = TRUE)
u1, u2 |
numeric vectors of equal length with values in [0,1]. |
family |
integer; single number or vector of size |
par |
numeric; single number or vector of size |
par2 |
numeric; single number or vector of size |
obj |
|
check.pars |
logical; default is |
If the family and parameter specification is stored in a BiCop()
object obj
, the alternative version
BiCopPDF(u1, u2, obj)
can be used.
A numeric vector of the bivariate copula density
of the copula family
with parameter(s) par
, par2
evaluated at u1
and u2
.
Eike Brechmann
## simulate from a bivariate Student-t copula cop <- BiCop(family = 2, par = -0.7, par2 = 4) simdata <- BiCopSim(100, cop) ## evaluate the density of the bivariate t-copula u1 <- simdata[,1] u2 <- simdata[,2] BiCopPDF(u1, u2, cop) ## select a bivariate copula for the simulated data fit <- BiCopSelect(u1, u2) summary(fit) ## and evaluate its PDF round(BiCopPDF(u1, u2, fit), 3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.