R/permcoefs.plsRbetanp.R
permcoefs.plsRbetanp.Rd
A function passed to boot
to perform bootstrap.
permcoefs.plsRbetanp(
dataRepYtt,
ind,
nt,
modele,
family = NULL,
maxcoefvalues,
wwetoile,
ifbootfail
)
components' coordinates to bootstrap
indices for resampling
number of components to use
type of modele to use, see plsRbeta
glm family to use, see plsRbeta
maximum values allowed for the estimates of the coefficients to discard those coming from singular bootstrap samples
values of the Wstar matrix in the original fit
value to return if the estimation fails on a bootstrap sample
estimates on a bootstrap sample or ifbootfail
value if the
bootstrap computation fails.
~~some notes~~
See also bootplsbeta
# \donttest{
data("GasolineYield",package="betareg")
modplsbeta <- plsRbeta(yield~.,data=GasolineYield,nt=3, modele="pls-beta")
#> ____************************************************____
#>
#> Model: pls-beta
#>
#> Link: logit
#>
#> Link.phi:
#>
#> Type: ML
#>
#> ____Component____ 1 ____
#> ____Component____ 2 ____
#> ____Component____ 3 ____
#> ____Predicting X without NA neither in X or Y____
#> ****________________________________________________****
#>
bootplsbeta(modplsbeta, R=250, statistic=permcoefs.plsRbetanp, typeboot="fmodel_np")
#>
#> ORDINARY NONPARAMETRIC BOOTSTRAP
#>
#>
#> Call:
#> boot(data = dataRepYtt, statistic = statistic, R = 250, sim = sim,
#> stype = stype, nt = nt, modele = modele, family = family,
#> maxcoefvalues = maxcoefvalues[-(1:(length(object$Coeffs) -
#> ncol(object$dataX)))], wwetoile = wwetoile, ifbootfail = ifbootfail)
#>
#>
#> Bootstrap Statistics :
#> original bias std. error
#> t1* 0.0139841003 -1.406335e-02 0.003867833
#> t2* 0.0129719714 -1.319980e-02 0.007598613
#> t3* -0.0437412382 4.371134e-02 0.015451825
#> t4* 0.1099552630 -1.113986e-01 0.023670633
#> t5* 0.0043782576 -4.731013e-03 0.008597652
#> t6* 0.0068269103 -6.624447e-03 0.007080816
#> t7* 0.0105674939 -1.047667e-02 0.006021611
#> t8* -0.0000215689 -9.699572e-06 0.001084491
#> t9* 0.0034693882 -3.869341e-03 0.007607322
#> t10* 0.0044693385 -4.687388e-03 0.003180578
#> t11* -0.0037252887 4.298200e-03 0.011803716
#> t12* -0.0020821555 2.139785e-03 0.001486808
#> t13* -0.0031646188 3.035866e-03 0.003629729
#> t14* -0.0089486739 9.061025e-03 0.001908773
# }