permcoefs.plsRglm: Coefficients for permutation bootstrap computations of PLSGLR...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/permcoefs.plsRglm.R

Description

A function passed to boot to perform bootstrap.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
permcoefs.plsRglm(
  dataset,
  ind,
  nt,
  modele,
  family = NULL,
  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 plsRglm

family

glm family to use, see plsRglm

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@math.unistra.fr
https://fbertran.github.io/homepage/

See Also

See also bootplsglm.

Examples

1
2
3
4
5
6
7
8
data(Cornell)

# (Y,X) bootstrap of a PLSGLR model
# statistic=coefs.plsRglm is the default for (Y,X) bootstrap of a PLSGLR models.
set.seed(250)
modplsglm <- plsRglm(Y~.,data=Cornell,1,modele="pls-glm-family",family=gaussian)
Cornell.bootYX <- bootplsglm(modplsglm, R=250, typeboot="plsmodel", 
sim="permutation", statistic=permcoefs.plsRglm, verbose=FALSE)

plsRglm documentation built on March 16, 2021, 1:08 a.m.