This function verifies whether the arguments fulfill some formal requirements.
debug(y, z, dist, phi, pi, gamma, test, iter, kind, ...)
y | observations:
numeric vector of length |
---|---|
z | class labels:
integer vector of length |
dist | distributional assumption:
character |
phi | dispersion parameter:
positive numeric,
or |
pi | zero-inflation parameter:
numeric between 0 and 1,
or |
gamma | offset:
numeric vector of length |
test | resampling procedure:
character |
iter | (maximum) number of resampling iterations :
positive integer, or |
kind | resampling accuracy:
numeric between |
... | settings |
This function returns warnings and errors.
It also returns kind
(see details).
If one or more entries of z
are equal to 1
,
the mixture model can be fitted but not tested.
Accordingly, kind
is replaced by NULL
.
Resampling-based testing cannot reach p
-values below 1/iter
.
If kind
is smaller than 1/iter
, it is replaced by 0
.
NULL#> NULL