Learn R Programming

spls (version 2.1-2)

print.splsda: Print function for a SPLSDA object

Description

Print out SPLSDA fits, the number and the list of selected predictors.

Usage

## S3 method for class 'splsda':
print( x, ... )

Arguments

x
A fitted SPLSDA object.
...
Additonal arguments for generic print.

Value

  • NULL.

References

Chung D and Keles S (2010), "Sparse partial least squares classification for high dimensional data", Statistical Applications in Genetics and Molecular Biology, Vol. 9, Article 17.

See Also

predict.splsda and coef.splsda.

Examples

Run this code
data(prostate)
# SPLSDA with eta=0.8 & 3 hidden components
f <- splsda( prostate$x, prostate$y, K=3, eta=0.8, scale.x=FALSE )
print(f)

Run the code above in your browser using DataLab