fdata2pls by alternative formulation of the NIPALS algorithm proposed by Kraemer and Sugiyama (2011).fregre.pls(fdataobj, y=NULL, l = NULL,...)fdata class object.n.fregre.pls function.fdata.y-fitted values.fdata2pls function.lm functionfregre.pls.cv, summary.fregre.fd and predict.fregre.fd.
Alternative method: fregre.pc, fregre.basis and fregre.np.data(tecator)
x<-tecator$absorp.fdata
y<-tecator$y$Fat
res=fregre.pls(x,y,c(1:8))
summary(res)Run the code above in your browser using DataLab