permcoefs.plsR.raw: Raw coefficients for permutation bootstrap computations of...

View source: R/permcoefs.plsR.raw.R

permcoefs.plsR.rawR Documentation

Raw coefficients for permutation bootstrap computations of PLSR models

Description

A function passed to boot to perform bootstrap.

Usage

permcoefs.plsR.raw(
  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)

Frédéric Bertrand
frederic.bertrand@utt.fr
https://fbertran.github.io/homepage/

See Also

See also bootpls.

Examples


data(Cornell)
XCornell<-Cornell[,1:7]
yCornell<-Cornell[,8]

# Lazraq-Cleroux PLS (Y,X) bootstrap
set.seed(250)
modpls <- permcoefs.plsR.raw(Cornell[,-8],1:nrow(Cornell),nt=3,
maxcoefvalues=1e5,ifbootfail=rep(0,3),verbose=FALSE)


fbertran/plsRglm documentation built on March 23, 2023, 2:14 a.m.