Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/CDVineVuongTest.r
This function performs a Vuong test between two d-dimensional C- or D-vine copula models, respectively.
1 2 3 4 5 6 |
data |
An N x d data matrix (with uniform margins). |
Model1.order, Model2.order |
Two numeric vectors giving the order of the variables in the first D-vine trees
or of the C-vine root nodes in models 1 and 2
(default: |
Model1.family, Model2.family |
Two d*(d-1)/2 numeric vectors of the pair-copula families of models 1 and 2, respectively, with values |
Model1.par, Model2.par |
Two d*(d-1)/2 numeric vectors of the (first) copula parameters of models 1 and 2, respectively. |
Model1.par2, Model2.par2 |
Two d*(d-1)/2 numeric vectors of the second copula parameters of models 1 and 2, respectively;
necessary for t, BB1, BB6, BB7 and BB8 copulas. If no such families are included in |
Model1.type, Model2.type |
Type of the respective vine model: |
The likelihood-ratio based test proposed by Vuong (1989) can be used for comparing non-nested models. For this let c_1 and c_2 be two competing vine copulas in terms of their densities and with estimated parameter sets θ_1 and θ_2. We then compute the standardized sum, ν, of the log differences of their pointwise likelihoods m_i:=log[c_1(u_i|θ_1) / c_2(u_i|θ_2) ] for observations u_i in [0,1],i=1,...,N , i.e.,
statistic := ν = (1/n∑_{i=1}^N m_i) / ((∑_{i=1}^N (m_i - \bar{m} )^2)^0.5).
Vuong (1989) shows that ν is asymptotically standard normal. According to the null-hypothesis
H_0: E[m_i] = 0 forall i=1,...,N,
we hence prefer vine model 1 to vine model 2 at level α if
ν > Φ^{-1}(1-α/2),
where Φ^{-1} denotes the inverse of the standard normal distribution function. If ν<-Φ^{-1}(1-α/2) we choose model 2. If, however, |ν| <= Φ^{-1}(1-α/2), no decision among the models is possible.
Like AIC and BIC, the Vuong test statistic may be corrected for the number of parameters used in the models. There are two possible corrections; the Akaike and the Schwarz corrections, which correspond to the penalty terms in the AIC and the BIC, respectively.
statistic, statistic.Akaike, statistic.Schwarz |
Test statistics without correction, with Akaike correction and with Schwarz correction. |
p.value, p.value.Akaike, p.value.Schwarz |
P-values of tests without correction, with Akaike correction and with Schwarz correction. |
Jeffrey Dissmann, Ulf Schepsmeier
Vuong, Q. H. (1989). Ratio tests for model selection and non-nested hypotheses. Econometrica 57 (2), 307-333.
CDVineClarkeTest
, CDVineAIC
, CDVineBIC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
# load data set
data(worldindices)
d = dim(worldindices)[2]
# select the C-vine families and parameters
cvine = CDVineCopSelect(worldindices,c(1:6),type="CVine")
# select the D-vine families and parameters
dvine = CDVineCopSelect(worldindices,c(1:6),type="DVine")
# compare the two models based on the data
vuong = CDVineVuongTest(worldindices,1:d,1:d,cvine$family,dvine$family,
cvine$par,dvine$par,cvine$par2,dvine$par2,
Model1.type=1,Model2.type=2)
vuong$statistic
vuong$statistic.Schwarz
vuong$p.value
vuong$p.value.Schwarz
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.