summary.ddsPLS: Function to sum up bootstrap performance results of the...

View source: R/summary.ddsPLS.R

summary.ddsPLSR Documentation

Function to sum up bootstrap performance results of the ddsPLS algorithm

Description

Function to sum up bootstrap performance results of the ddsPLS algorithm

Usage

## S3 method for class 'ddsPLS'
summary(object, returnValues = FALSE, digits = 2, ...)

Arguments

object

A ddsPLS object.

returnValues

boolean. Wether or not to return the printed values, default to FALSE.

digits

integer indicating the number of decimal places (round) to be used.

...

arguments to be passed to methods, such as graphical parameters.

Value

No return value, called for side effects

See Also

ddsPLS, plot.ddsPLS, predict.ddsPLS

Examples

n <- 100 ; d <- 2 ; p <- 20 ; q <- 2
phi <- matrix(rnorm(n*d),n,d)
a <- rep(1,p/4) ; b <- rep(1,p/2)
X <- phi%*%matrix(c(1*a,0*a,0*b,1*a,3*b,0*a),nrow = d,byrow = TRUE) +
matrix(rnorm(n*p,sd = 1/4),n,p)
Y <- phi%*%matrix(c(1,0,0,0),nrow = d,byrow = TRUE) +
matrix(rnorm(n*q,sd = 1/4),n,q)
res <- ddsPLS(X,Y,verbose=FALSE)
summary(res,digits=5)


ddsPLS documentation built on May 31, 2023, 7:50 p.m.