View source: R/permcoefs.plsRglm.raw.R
permcoefs.plsRglm.raw | R Documentation |
A function passed to boot
to perform bootstrap.
permcoefs.plsRglm.raw(
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.
Frédéric Bertrand
frederic.bertrand@utt.fr
https://fbertran.github.io/homepage/
See also bootplsglm
.
data(Cornell)
# (Y,X) bootstrap of a PLSGLR model
set.seed(250)
modplsglm <- permcoefs.plsRglm.raw(Cornell[,-8],1:nrow(Cornell),nt=3,
modele="pls-glm-family",family=gaussian,maxcoefvalues=1e5,
ifbootfail=rep(0,3),verbose=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.