Displaying 5 results from an estimated 5 matches for "plsdata".
Did you mean:
blsdata
2011 May 13
1
PLSR error
Hi,
this is my R-Script
library(pls)
file <- "C:\\TXT\\brix.txt"
d <- as.matrix(read.table(file, header=T, sep=",", row.names = NULL))
plsdata <- data.frame(NIR=c(1:nrow(X)))
plsdata$NIR <- I(d[,3:603])
plsdata$Brix <- d[,2]
results <- plsr(Brix ~ NIR, data=plsdata)
after the last string i have this error
> results <- plsr(Brix ~ NIR, data=plsdata)
Error in `[[<-.data.frame`(`*tmp*`, i, value = c(302053L, 305882L, 2...
2011 May 18
1
Help with Memory Problems (cannot allocate vector of size)
While doing pls I found the following problem
> BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, jackknife =
>FALSE, validation = "LOO")
when not enabling jackknife the command works fine, but when trying to enable
jackknife i get the following error.
>BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, jackknife =
>TRUE, validation = "LOO&quo...
2007 Oct 16
1
data structure for plsr
All,
I am working with NIR spectral data and it was great to find that the example in ?plsr also used spectral data. Unfortunately, I am having difficulty figuring out how the "yarn" dataset is structured to allow for the plsr model to read:
library(pls)
data(yard)
yarn.oscorespls <- mvr(density ~ NIR, 6, data = yarn, validation = "CV", method = "oscorespls")
2011 May 17
1
Help with PLSR with jack knife
...most significant
peptides). I beleive that PLS with jack knifing, or alternativeley
CMV(cross-model-validation) are multivariateThe 40 samples belong to four
different groups.
I have managed to conduct the plsr using the commands:
BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, validation =
"LOO")
and
BHPLS1 <- plsr(GroupingList ~ PCIList, ncomp = 10, data = PLSdata, validation =
"CV")
I have also used the following command to obtain the loadings
BHPLS1_Loadings <- loadings(BHPLS1)
Now I am unsure of how to utilise these to identify the s...
2011 May 17
1
help with PLSR Loadings
...quot; "Comp 4" ...
- attr(*, "explvar")= Named num [1:10] 14.57 6.62 7.59 5.91 3.26 ...
..- attr(*, "names")= chr [1:10] "Comp 1" "Comp 2" "Comp 3" "Comp 4" ...
Here is the structure of teh data used to conduct plsr
>str(PLSdata)
'data.frame': 40 obs. of 2 variables:
$ GroupingList: int 1 1 1 1 1 1 1 1 1 1 ...
$ PCIList : AsIs [1:40, 1:94727] 42.01749.... 40.85915.... 65.01948....
55.98204.... 61.71673.... ...
..- attr(*, "dimnames")=List of 2
.. ..$ : chr "X" "X.1" &qu...