Get the indices of non-zero coefficients from fitted HTLR model objects.
nzero_idx(fit, cut = 0.1)
fit | An object of S3 class |
---|---|
cut | Threshold on relative SDB to distinguish zero coefficients. |
Indices vector of non-zero coefficients in the model.
set.seed(12345) data("colon") fit <- htlr(X = colon$X, y = colon$y, fsel = 1:100, iter = 20) nzero_idx(fit)#> [1] 14 43