Invalid number of components, ncomp
I'm not familiar with the package and I don't currently have it loaded, but looking at the examples in the documentation here http://www.stat.ucl.ac.be/ISdidactique/Rhelp/library/pls.pcr/html/mvr.html it seems that you need ncomp = 1:6. Saying you want to do multivariate regression on only a single variable is probably the source of the error. Does that help? Michael On Wed, Nov 30, 2011 at 5:10 AM, Vytautas Rakeviius
<vytautas1987 at yahoo.com> wrote:
Error in mvr(Kd_nM ~ qsar, ncomp = 6, data = my, validation = "CV", method = "kernelpls") : ? Invalid number of components, ncomp How I can fix this? ? ? ? ?[[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.