Get the indices of non-zero variables in all steps from msaenet model objects.

msaenet.nzv.all(object)

Arguments

object

An object of class msaenet produced by aenet, amnet, asnet, msaenet, msamnet, or msasnet.

Value

List containing indices vectors of non-zero variables in all steps.

Examples

dat <- msaenet.sim.gaussian( n = 150, p = 500, rho = 0.6, coef = rep(1, 5), snr = 2, p.train = 0.7, seed = 1001 ) msaenet.fit <- msaenet( dat$x.tr, dat$y.tr, alphas = seq(0.2, 0.8, 0.2), nsteps = 3L, seed = 1003 ) msaenet.nzv.all(msaenet.fit)
#> [[1]] #> [1] 1 2 3 4 5 6 33 35 49 54 74 114 135 171 178 226 244 262 263 #> [20] 312 358 363 379 388 441 463 464 500 #> #> [[2]] #> [1] 1 2 3 4 5 35 49 114 171 312 379 441 464 500 #> #> [[3]] #> [1] 2 3 4 5 35 114 171 312 379 441 464 500 #> #> [[4]] #> [1] 2 3 4 5 35 114 171 312 379 441 464 500 #>