fs: Forward selection

Description

Perform forward variable selection with or without OMP

Usage

1
fs(X, y, omp = FALSE)

Arguments

X

matrix of predictors

y

response vector

omp

whether to use orthogonal matching pursuit (OMP)

Value

vector with jth component the variable added at step j


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.