is.zero.matrix(object, ...)
is.zero.vglm(object, ...)
zero
argument applied to it.
It is TRUE
if that linear/additive predictor is
intercept-only, i.e., all other regression coefficients
are set to zero.No checking is done for the intercept term at all, i.e., that it was estimated in the first place.
zero
argument
on a vglm
object or the coefficient matrix
of a vglm
object.
The latter is obtained by coef(vglmObject, matrix = TRUE)
.constraints
,
vglm
.coalminers <- transform(coalminers, Age = (age - 42) / 5)
fit <- vglm(cbind(nBnW,nBW,BnW,BW) ~ Age, binom2.or(zero = NULL), coalminers)
is.zero(fit)
is.zero(coef(fit, matrix = TRUE))
Run the code above in your browser using DataLab