Learn R Programming

gamsel (version 1.8-5)

getActive: Returns active variables

Description

Extract active variables of different kinds from a gamsel object

Usage

getActive(
  object,
  index = NULL,
  type = c("nonzero", "linear", "nonlinear"),
  EPS = 0
)

Value

vector of indices

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.