Learn R Programming

holiglm (version 1.0.1)

active_coefficients: Obtain all Active Coefficients

Description

The function returns a logical vector which is TRUE for all active (i.e., non-zero) coefficients in the fitted model and FALSE otherwise.

Usage

active_coefficients(object, ...)

acoef(object, ...)

Value

a logical vector giving the active coefficients.

Arguments

object

an object inheriting from "hglm" or "hglm.fit" from which the active coefficients obtained from.

...

optional arguments currently ignored.

Examples

Run this code
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