CondiCopLikCV {LocalCop} | R Documentation |
Cross-validated likelihood.
Description
Leave-one-out local likelihood copula parameter estimates are interpolated, then used to calculate the conditional copula likelihood function.
Usage
CondiCopLikCV(
u1,
u2,
family,
x,
xind = 100,
degree = 1,
eta,
nu,
kernel = KernEpa,
band,
optim_fun,
cveta_out = FALSE,
cv_all = FALSE,
cl = NA
)
Arguments
u1 |
Vector of first uniform response. |
u2 |
Vector of second uniform response. |
family |
An integer defining the bivariate copula family to use. See |
x |
Vector of observed covariate values. |
xind |
Vector of indices in |
degree |
Integer specifying the polynomial order of the local likelihood function. Currently only 0 and 1 are supported. |
eta , nu , kernel , band , optim_fun , cl |
See |
cveta_out |
If |
cv_all |
If |
Value
If cveta_out = FALSE
, scalar value of the cross-validated log-likelihood. Otherwise, a list with elements:
x
The sorted values of
x
.eta
The leave-one-out estimates interpolated from the values in
xind
to all of those inx
.nu
The scalar value of the estimated (or provided) second copula parameter.
loglik
The cross-validated log-likelihood.
See Also
This function is typically used in conjunction with CondiCopSelect()
; see example there.