coefs.plsR: Coefficients for bootstrap computations of PLSR models

Description Usage Arguments Value Author(s) See Also Examples

Description

A function passed to boot to perform bootstrap.

Usage

1
coefs.plsR(dataset,ind,nt,modele, maxcoefvalues,ifbootfail,verbose)

Arguments

dataset

dataset to resample

ind

indices for resampling

nt

number of components to use

modele

type of modele to use, see plsR

maxcoefvalues

maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples

ifbootfail

value to return if the estimation fails on a bootstrap sample

verbose

should info messages be displayed ?

Value

estimates on a bootstrap sample or ifbootfail value if the bootstrap computation fails.

Author(s)

Frederic Bertrand
[email protected]
http://www-irma.u-strasbg.fr/~fbertran/

See Also

See also bootpls.

Examples

1
2
3
4
5
6
7
8
9
data(Cornell)
XCornell<-Cornell[,1:7]
yCornell<-Cornell[,8]

# Lazraq-Cleroux PLS (Y,X) bootstrap
# statistic=coefs.plsR is the default for (Y,X) resampling of PLSR models.
set.seed(250)
modpls <- plsR(yCornell,XCornell,1)
Cornell.bootYX <- bootpls(modpls, R=250, statistic=coefs.plsR, verbose=FALSE)

fbertran/plsRglm documentation built on May 16, 2019, 9:16 a.m.