[R] Invalid number of components, ncomp

R. Michael Weylandt michael.weylandt at gmail.com
Thu Dec 1 00:51:42 CET 2011

I'm not familiar with the package and I don't currently have it
loaded, but looking at the examples in the documentation here


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

Does that help?


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.

More information about the R-help mailing list