
Vuong's test of zero-inflated against plain Poisson at the boundary
Source:R/ledger_scan.R
morie_zip_vuong_boundary.RdAt \(\pi = 0\) the zero-inflated Poisson pmf is the Poisson pmf at every
count (Research.P7.Cox.zip_zero_eq_poisson), so every pointwise
log-likelihood ratio is zero (llr_zero), their sample standard deviation
is zero and the Vuong statistic is 0/0, not standard normal.
Usage
morie_zip_vuong_boundary(counts, lam = mean(counts))Examples
morie_zip_vuong_boundary(c(0, 0, 1, 2, 0, 3))
#> $llr
#> [1] 0 0 0 0 0 0
#>
#> $sd
#> [1] 0
#>
#> $statistic
#> [1] NA
#>
#> attr(,"theorem")
#> [1] "Research.P7.Cox.llr_zero"