Bivariate copula models
bicop(data, family_set = "all", par_method = "mle",
nonpar_method = "quadratic", mult = 1, selcrit = "bic", psi0 = 0.9,
presel = TRUE, keep_data = TRUE, cores = 1)bicop_dist(family = "indep", rotation = 0, parameters = numeric(0))
a matrix or data.frame (copula data should have approximately uniform margins).
a character vector of families; see Details for additional options.
the estimation method for parametric models, either "mle"
for maximum likelihood or "itau"
for inversion of Kendall's tau (only
available for one-parameter families and "t"
.
the estimation method for nonparametric models, either
"constant"
for the standard transformation estimator, or
"linear"
/"quadratic"
for the local-likelihood approximations of order
one/two.
multiplier for the smoothing parameters of nonparametric families. Values larger than 1 make the estimate more smooth, values less than 1 less smooth.
criterion for family selection, either "loglik"
, "aic"
,
"bic"
, "mbic"
. For vinecop()
there is the additional option "mbicv"
.
see mBICV()
.
whether the family set should be thinned out according to symmetry characteristics of the data.
whether the data should be stored (necessary for computing
fit statistics and using fitted()
).
number of cores to use; if more than 1, estimation for multiple families is done in parallel.
the copula family, a string containing the family name (see Details for all possible families).
the rotation of the copula, one of 0
, 90
, 180
, 270
.
a vector or matrix of copula parameters.
Objects inheriting from bicop_dist
for bicop_dist()
, and
bicop
and bicop_dist
for bicop()
.
The implemented families are:
"indep"
= Independence copula.
"gaussian"
= Gaussian copula.
"t"
= Student t copula.
"clayton"
= Clayton copula.
"gumbel"
= Gumbel copula.
"frank"
= Frank copula.
"joe"
= Joe copula.
"bb1"
= BB1 copula.
"bb6"
= BB6 copula.
"bb7"
= BB7 copula.
"bb8"
= BB8 copula.
"tll"
= transformation kernel local likelihood, only for bicop()
.
In addition, the following convenience definitions can be used (and combined)
with bicop
:
"all"
= all families.
"parametric"
= parametric families.
"nonparametric"
= nonparametric families.
"archimedean"
= archimedean families.
"elliptical"
= elliptical families.
"bbs"
= BB families.
"oneparametric"
= one parameter families.
"twoparametric"
= two parameter families.
"itau"
= one parameter families and Student t copula.
Partial matching is activated. For example, "gauss"
is equivalent to
"gaussian"
, or you can write "nonpar"
instead of "nonparametric"
.
# NOT RUN {
## bicop_dist objects
bicop_dist("gaussian", 0, 0.5)
str(bicop_dist("gauss", 0, 0.5))
bicop <- bicop_dist("clayton", 90, 3)
## bicop objects
u <- rbicop(500, "gauss", 0, 0.5)
fit1 <- bicop(u, "par")
fit1
# }
Run the code above in your browser using DataLab