A function passed to boot
to perform bootstrap.
coefs.plsRglm( dataset, ind, nt, modele, family = NULL, maxcoefvalues, ifbootfail, verbose )
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 ? |
estimates on a bootstrap sample or ifbootfail
value if the
bootstrap computation fails.
See also bootplsglm
.
Frédéric Bertrand
frederic.bertrand@utt.fr
https://fbertran.github.io/homepage/
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)#> ____************************************************____ #> #> Family: gaussian #> Link function: identity #> #> ____Component____ 1 ____ #> ____Predicting X without NA neither in X or Y____ #> ****________________________________________________**** #>Cornell.bootYX <- bootplsglm(modplsglm, R=250, typeboot="plsmodel", statistic=coefs.plsRglm, verbose=FALSE)