Refits a countreg_hier() model without one random-effect
term and compares the log-likelihoods. The null value of a variance is
on the boundary of its parameter space, so for a term with one effect
the p-value is that of an equal mixture of \(\chi^2_0\) and
\(\chi^2_1\) (Self and Liang 1987): half the naive p-value. For a term
with \(q > 1\) effects the mixture of \(\chi^2_{k-q}\) to
\(\chi^2_k\) (\(k = q(q + 1)/2\)) is approximated by an equal mixture
of \(\chi^2_{k-1}\) and \(\chi^2_k\).
Arguments
- object
a
countreg_hier()fit.- term
the term to test, as its label (e.g.
"1 | site"); by default the last one.
