active_coefficients function

Obtain all Active Coefficients

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, ...)

Arguments

  • object: an object inheriting from "hglm" or "hglm.fit"

    from which the active coefficients obtained from.

  • ...: optional arguments currently ignored.

Returns

a logical vector giving the active coefficients.

Examples

dat <- rhglm(100, c(1, 2, -3, 4, 5, -6)) fit <- hglm(y ~ ., constraints = k_max(3), data = dat) active_coefficients(fit)
  • Maintainer: Benjamin Schwendinger
  • License: GPL-3
  • Last published: 2024-12-20

Useful links