Skip to content
Back to formatted view

Raw Message

Message-ID: <CAAmySGO9HMKKjHyuV7ebPpSC+k_yVAbcqBUn8NzQNnOidWJ_Pg@mail.gmail.com>
Date: 2011-11-30T23:51:42Z
From: R. Michael Weylandt
Subject: Invalid number of components, ncomp
In-Reply-To: <1322647845.69137.YahooMailNeo@web121516.mail.ne1.yahoo.com>

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.
>
>