print.enpls.fs: Print enpls.fs Object

Description Usage Arguments Author(s) See Also Examples

View source: R/print.enpls.R

Description

Print enpls.fs object.

Usage

1
2
## S3 method for class 'enpls.fs'
print(x, sort = TRUE, nvar = NULL, ...)

Arguments

x

An object of class enpls.fs.

sort

Should the variables be sorted in decreasing order of importance?

nvar

Number of top variables to show. Ignored if sort = FALSE.

...

Additional parameters for print.

Author(s)

Nan Xiao <https://nanx.me>

See Also

See enpls.fs for measuring feature importance with ensemble partial least squares regressions.

Examples

1
2
3
4
5
6
7
8
data("alkanes")
x = alkanes$x
y = alkanes$y

set.seed(42)
fs = enpls.fs(x, y, reptimes = 100)
print(fs)
print(fs, nvar = 10L)

enpls documentation built on Sept. 28, 2017, 1:02 a.m.