Re: [R] Help: Plsr

2005-09-05 Thread Shengzhe Wu
Dear Bjørn-Helge, Sorry, I wrote the wrong number of observation. It should be 1184. I saw on the book that variance is defined by sd^2. If variation is a different concept from variance and defined by sd^2*(n-1) ? Since I formerly took variance and variation as the same. Thank you, Shengzhe

Re: [R] Help: PLSR

2005-09-05 Thread Bjørn-Helge Mevik
Shengzhe Wu writes: > I have a data set with 15 variables (first one is the response) and > 1200 observations. Now I use pls package to do the plsr as below. [...] > Because the trainSet has been scaled before training, I think Xtotvar > should be equal to 14, but unexpectedly Xtotvar = 16562,

[R] Help: PLSR

2005-09-04 Thread Shengzhe Wu
Hello, I have a data set with 15 variables (first one is the response) and 1200 observations. Now I use pls package to do the plsr as below. trainSet = as.data.frame(scale(trainSet, center = T, scale = T)) trainSet.plsr = mvr(formula, ncomp = 14, data = trainSet, method = "kernelpls",

[R] Help: PLSR

2005-07-22 Thread wu sz
Hello, I have a data set with 15 variables (first one is the response) and 1200 observations. Now I use pls package to do the plsr with cross validation as below. trainSet = as.data.frame(scale(trainSet, center = T, scale = T)) trainSet.plsr = mvr(formula, ncomp = 14, data = trainSet, method = "k