test.coefficient performs large-sample tests
(higher-order asymptotic test, likelihood ratio test,
and/or Wald tests) for testing one of the regression
coefficient in an NB regression model.test.coefficient(nb, dispersion, x, beta0, tests,
alternative = "two.sided", subset = 1:m,
print.level = 1)prepare.nb.data.estimate.disp."HOA"
(higher-order asymptotic test), "LR" (likelihoo
ratio test), and "Wald" (Wald test)."two.sided"
(default), "greater" or "less".p.values and q.values,
giving p-values and q-values of the corresponding tests
when that test is included in tests.test.coefficient performs large-sample tests for a
one-dimensional ($q=1$) component $\psi$ of the
$p$-dimensional regression coefficient $\beta$.
The hypothesized value $\psi_0$ of $\psi$ is
specified by the non-NA component of the vector
beta0 in the input.The likelihood ratio statistic, $$\lambda = 2 (l(\hat\beta) - l(\tilde\beta)),$$ converges in distribution to a chi-square distribution with $1$ degree of freedom. The signed square root of the likelihood ratio statistic $\lambda$, also called the directed deviance, $$r = sign (\hat\psi - \psi_0) \sqrt \lambda$$ converges to a standard normal distribution.
For testing a one-dimensional parameter of interest, Barndorff-Nielsen (1986, 1991) showed that a modified directed $$r^* = r - \frac{1}{r} \log(z)$$ is, in wide generality, asymptotically standard normally distributed to a higher order of accuracy than the directed deviance $r$ itself, where $z$ is an adjustment term. Tests based on high-order asymptotic adjustment to the likelihood ratio statistic, such as $r^*$ or its approximation, are referred to as higher-order asymptotic (HOA) tests. They generally have better accuracy than corresponding unadjusted likelihood ratio tests, especially in situations where the sample size is small and/or when the number of nuisance parameters ($p-q$) is large. The implementation here is based on Skovgaard (2001). See Di et al. 2012 for more details.
Barndorff-Nielsen, O. (1991): "Modified signed log likelihood ratio," Biometrika, 78, 557-563.
Skovgaard, I. (2001): "Likelihood asymptotics," Scandinavian Journal of Statistics, 28, 3-32.