Description Usage Arguments Value References See Also Examples
The Vuong test is suitable to discriminate between two non-nested models.
1 2 3 4 5 6 |
x |
a first fitted model of class |
y |
a second fitted model of class |
type |
the kind of test to be computed, |
hyp |
a boolean, |
variance |
the variance is estimated using the |
matrix |
the W matrix can be computed using the general
expression |
an object of class "htest"
Vuong Q.H. (1989) Likelihood ratio tests for model selection and non-nested hypothesis, Econometrica, vol.57(2), pp.307-33.
1 2 3 4 5 6 7 8 9 | data("Interview", package = "mhurdle")
# dependent double hurdle model
dhm <- mhurdle(vacations ~ car + size | linc + linc2 | 0, Interview,
dist = "ln", h2 = TRUE, method = "bhhh", corr = TRUE)
# a double hurdle p-tobit model
ptm <- mhurdle(vacations ~ 0 | linc + linc2 | car + size, Interview,
dist = "ln", h2 = TRUE, method = "bhhh", corr = TRUE)
vuongtest(dhm, ptm)
|
Loading required package: Formula
Loading required package: truncreg
Loading required package: maxLik
Loading required package: miscTools
Please cite the 'maxLik' package as:
Henningsen, Arne and Toomet, Ott (2011). maxLik: A package for maximum likelihood estimation in R. Computational Statistics 26(3), 443-458. DOI 10.1007/s00180-010-0217-1.
If you have questions, suggestions, or comments regarding the 'maxLik' package, please use a forum or 'tracker' at maxLik's R-Forge site:
https://r-forge.r-project.org/projects/maxlik/
Loading required package: survival
Loading required package: texreg
Version: 1.36.23
Date: 2017-03-03
Author: Philip Leifeld (University of Glasgow)
Please cite the JSS article in your publications -- see citation("texreg").
Vuong Test (non-nested)
data: dhm-ptm
z = -1.5427, p-value = 0.06145
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.