arunkumar1111 <akpbond...@gmail.com> writes:

> How to use the segments in the PLS
>
> fit1 <- mvr(formula=Y~X1+X2+X3+X4+x5+....+x27, data=Dataset, comp=5,segment
> =7 ) 
>
> here when i use segments,the error was like this
>
> rror in mvrCv(X, Y, ncomp, method = method, scale = sdscale, ...) : 
>   argument 7 matches multiple formal arguments

This cannot be true.  mvr does not call mvrCv unless you give it the
argument validation = "CV" or validation = "LOO".

Anyway, the argument is "segments", not "segment", which - as the error
message says - matches multiple arguments, in this case "segment.type".

-- 
Regards,
Bjørn-Helge Mevik

______________________________________________
R-help@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.

Reply via email to