getActive: Returns active variables

Description Usage Arguments Details Value

View source: R/getActive.R

Description

Extract active variables of different kinds from a gamsel object

Usage

1
2
3
4
5
6
getActive(
  object,
  index = NULL,
  type = c("nonzero", "linear", "nonlinear"),
  EPS = 0
)

Arguments

object

gamsel object

index

index or vector of indices at which to obtain active information. NULL returns all.

type

type of active variables to report. One of c("nonzero", "linear", "nonlinear")

EPS

threshold for what is nonzero; default is 0

Details

Returns a vector of variables indices of variables having the desired properties.

Value

vector of indices


gamsel documentation built on Feb. 4, 2022, 5:09 p.m.