ndvuong {micsr}R Documentation

Non-degenerate Vuong test

Description

An unhanced version of the Vuong test with a small-sample bias correction

Usage

ndvuong(
  x,
  y,
  size = 0.05,
  pval = TRUE,
  nested = FALSE,
  vartest = FALSE,
  ndraws = 10000,
  diffnorm = 0.1,
  seed = 1,
  numbers = NULL,
  nd = TRUE,
  print.level = 0
)

Arguments

x

a first fitted model

y

a second fitted model

size

the size of the test

pval

should the p-value be computed ?

nested

a boolean, TRUE for nested models

vartest

a boolean, if TRUE, the variance test is computed

ndraws

the number of draws for the simulations

diffnorm

a creuser

seed

the seed

numbers

a user provided matrix of random numbers

nd

a boolean, if TRUE (the default) the non-degenarate Vuong test is computed

print.level

the level of details to be printed

Value

an object of class "htest".

References

Vuong QH (1989). “Likelihood Ratio Tests for Selection and Non-Nested Hypotheses.” Econometrica, 57(2), 397-333.

Shi X (2015). “A nondegenerate Vuong test.” Quantitative Economics, 85-121.

See Also

the classical Vuong test is implemented in pscl::vuong and nonnest2::vuongtest.


[Package micsr version 0.1-1 Index]