data(cookie) # load example data
X <- as.matrix(cookie$NIR) # NIR spectra
y <- cookie$constituents$fat # extract one constituent
pls.object <- penalized.pls.cv(X, y, ncomp = 10, kernel = TRUE)
my.jack <- jack.ppls(pls.object)
coef(my.jack)
vcov(my.jack)
Run the code above in your browser using DataLab