ryszard.czerminski@pharma.novartis.com
2003-Dec-09 16:15 UTC
[R] problem with pls(x, y, ..., ncomp = 16): Error in inherits(x, "data.frame") : subscript out of bounds
When I try to use ncomp parameter in pls procedure I get following error:> library(pls.pcr) > m <- pls(x, y, validation = "CV", niter = 68, ncomp = 16)Error in inherits(x, "data.frame") : subscript out of bounds Without ncomp parameter everything seems to work OK> dim(x)[1] 68 116> dim(y)[1] 68 1> m <- pls(x, y, validation = "CV", niter = 68) > length(m$ncomp)[1] 67 Ryszard