Last chance! 50% off unlimited learning
Sale ends in
n<-50 # number of observations
p<-5 # number of variables
X<-matrix(rnorm(n*p),ncol=p)
y<-rnorm(n)
pls.object<-pls.ic(X,y,criterion="bic")
mycoef<-coef(pls.object)
Run the code above in your browser using DataLab