# NOT RUN {
data(MSC)
X=MSC$X
Y=MSC$Y
boot=bootsPLS(X=X,Y=Y,ncomp=3,many=5,kCV=5)
# with a bootsPLS object and auto.tune=TRUE
fit=fit.model(boot,auto.tune=TRUE)
plot(fit$component.selection)
plot(fit$variable.selection)
# with a bootsPLS object and ncomp=2
fit=fit.model(boot,ncomp=2)
# with a bootsPLS object and ncomp/signature as input
signature=fit$data$signature
fit=fit.model(boot,ncomp=2,signature=signature)
# with no bootsPLS object
fit=fit.model(X=X,Y=Y,ncomp=2,signature=signature)# bootsPLS object
plotIndiv(fit,ind.names=FALSE, legend=TRUE)
# }
Run the code above in your browser using DataLab