BiCopVuongClarke(u1, u2, familyset = NA,
correction = FALSE, level = 0.05)
familyset = NA
(default), all possible families are compared.
Possible families are:
0
= indecorrection = FALSE
(no correction; default), "Akaike"
and "Schwarz"
.level = 0.05
).RVineVuongTest
and RVineClarkeTest
for descriptions of the two tests).
In the goodness-of-fit test proposed by Belgorodski (2010) this is used for bivariate copula selection.
It compares a model 0 to all other possible models under consideration.
If model 0 is favored over another model, a score of "+1" is assigned and similarly a score of "-1" if the other model is determined to be superior.
No score is assigned, if the respective test cannot discriminate between two models.
Both tests can be corrected for the numbers of parameters used in the copulas.
Either no correction (correction = FALSE
), the Akaike correction (correction = "Akaike"
)
or the parsimonious Schwarz correction (correction = "Schwarz"
) can be used.
The models compared here are bivariate parametric copulas and we would like to determine which family fits the data better than the other families.
E.g., if we would like to test the hypothesis that the bivariate Gaussian copula fits the data best, then we
compare the Gaussian copula against all other copulas under consideration.
In doing so, we investigate the null hypothesis "The Gaussian copula fits the data better than all other copulas under consideration",
which corresponds to $k-1$ times the hypothesis "The Gaussian copula $C_j$ fits the data better than copula $C_i$" for all $i=1,...,k, i\neq j$, where $k$ is the number
of bivariate copula families under consideration (length of familyset
).
This procedure is done not only for one family but for all families under consideration, i.e., two scores, one based on the Vuong and one based on the Clarke test,
are returned for each bivariate copula family.
If used as a goodness-of-fit procedure, the family with the highest score should be selected.
For more and detailed information about the goodness-of-fit test see Belgorodski (2010).BiCopGofTest
, RVineVuongTest
, RVineClarkeTest
, BiCopSelect
# simulate from a t-copula
set.seed(123)
dat <- BiCopSim(500, 2, 0.7, 5)
# apply the test for families 1-10
vcgof <- BiCopVuongClarke(dat[,1], dat[,2], familyset = 1:6)
# display the Vuong test scores
vcgof[1,]
# display the Clarke test scores
vcgof[2,]
Run the code above in your browser using DataLab