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