Learn R Programming

plsRbeta (version 0.3.0)

permcoefs.plsRbetanp: Coefficients for permutation bootstrap computations of PLSBeta models

Description

A function passed to boot to perform bootstrap.

Usage

permcoefs.plsRbetanp(
  dataRepYtt,
  ind,
  nt,
  modele,
  family = NULL,
  maxcoefvalues,
  wwetoile,
  ifbootfail
)

Value

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

Arguments

dataRepYtt

components' coordinates to bootstrap

ind

indices for resampling

nt

number of components to use

modele

type of modele to use, see plsRbeta

family

glm family to use, see plsRbeta

maxcoefvalues

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

wwetoile

values of the Wstar matrix in the original fit

ifbootfail

value to return if the estimation fails on a bootstrap sample

See Also

See also bootplsbeta

Examples

Run this code
# \donttest{
data("GasolineYield",package="betareg")
modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta")
bootplsbeta(modplsbeta, R=250, statistic=permcoefs.plsRbetanp, typeboot="fmodel_np")
# }

Run the code above in your browser using DataLab