Learn R Programming

plsRglm (version 0.3.3)

boxplots.bootpls: Boxplot bootstrap distributions

Description

Boxplot plots for bootstrap distributions.

Usage

boxplots.bootpls(bootobject, indices = NULL, prednames = TRUE, articlestyle = TRUE, xaxisticks=TRUE, ranget0= FALSE, ...)

Arguments

bootobject
~~Explain bootobject here~~
indices
~~Explain indices here~~
prednames
~~Explain prednames here~~
articlestyle
~~Explain articlestyle here~~
xaxisticks
~~Explain articlestyle here~~
ranget0
~~Explain articlestyle here~~
...
~~Explain ... here~~

Value

  • ~Describe the value returned If it is a LIST, use
  • comp1Description of 'comp1'
  • comp2Description of 'comp2'
  • ...

Details

~~ More details than the description above ~~

References

~put references to the literature/web site here ~

See Also

bootpls

Examples

Run this code
data(Cornell)
XCornell<-Cornell[,1:7]
yCornell<-Cornell[,8]

# Lazraq-Cl�roux PLS ordinary bootstrap

set.seed(250)
Cornell.boot <- bootpls(plsR(yCornell,XCornell,3), sim="ordinary", stype="i", R=250)

# Graph similar to the one of Bastien et al. in CSDA 2005
boxplots.bootpls(Cornell.boot,indices=2:8)

data(aze_compl)
Xaze_compl<-aze_compl[,2:34]
yaze_compl<-aze_compl$y

#should be run with R=1000 but takes much longer time
aze_compl.boot3 <- bootplsglm(plsRglm(yaze_compl,Xaze_compl,3,modele="pls-glm-logistic"), sim="ordinary", stype="i", R=250)
boxplots.bootpls(aze_compl.boot3)
boxplots.bootpls(aze_compl.boot3,prednames=FALSE)
boxplots.bootpls(aze_compl.boot3,prednames=FALSE,articlestyle=FALSE,main="Bootstrap distribution for the bj")
boxplots.bootpls(aze_compl.boot3,indices=1:34,prednames=FALSE)
boxplots.bootpls(aze_compl.boot3,indices=c(2,4,6),prednames=FALSE)

Run the code above in your browser using DataLab