Obtain all Active Coefficients
The function returns a logical vector which is TRUE
for all active (i.e., non-zero) coefficients in the fitted model and FALSE
otherwise.
active_coefficients(object, ...) acoef(object, ...)
object
: an object inheriting from "hglm"
or "hglm.fit"
from which the active coefficients obtained from.
...
: optional arguments currently ignored.
a logical vector giving the active coefficients.
dat <- rhglm(100, c(1, 2, -3, 4, 5, -6)) fit <- hglm(y ~ ., constraints = k_max(3), data = dat) active_coefficients(fit)
Useful links