search for: plsr

Displaying 20 results from an estimated 77 matches for "plsr".

Did you mean: pls
2005 May 12
1
pls -- crossval vs plsr(..., CV=TRUE)
...1.01, v 2.0.1 I want to get R^2 and Q^2 (LOO and Leave-10-Out) values for each component for my model. I was running into a few problems so I played with the example a little and the results do not match up with the comments in the help pages. $ library(pls) $ data(NIR) $ testing.plsNOCV <- plsr(y ~ X, 6, data = NIR, method="kernelpls", validation="none") $ NIR.plsCV <- plsr(y ~ X, 6, data = NIR, CV=TRUE, method="kernelpls") $ testing.plsCV <- crossval(testing.plsNOCV) $ R2(NIR.plsCV) (Intercept) 1 comps 2 comps 3 comps 4 comps...
2011 May 12
1
Fw: Help with PLSR
Hi I am attempting to use plsr which is part of the pls package in r. I amconducting analysis on datasets to identify which proteins/peptides are responsible for the variance between sample groups (Biomarker Spoting) in a multivariate fashion. I have a dataset in R called "FullDataListTrans". as you can see belo...
2011 May 17
1
Help with PLSR with jack knife
...intensity measures for various peptides. I am trying to identify the Biomarkers (i.e. 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_...
2009 May 07
1
I need your help about plsr
Hi, I need your help, so I send letter to you. I have a problem about plsr in pls package. I want to show how classfied or related each ohter samples, so I tried to use plsr and biplot. But, I failed. Because, I had to change data type of my sample. Unfortunately, I didn't know how change data type. I want you to help me about that. please, help me. I show you my...
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 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, 292704L, : replacement has 448346 rows, data has 746 In addition: Warning message: In model.matrix.default(...
2007 May 25
2
R-About PLSR
hi R help group, I have installed PLS package in R and use it for princomp & prcomp commands for calculating PCA using its example file(USArrests example). But How I can use PLS for Partial least square, R square, mvrCv one more think how i can import external file in R. When I use plsr, R2, RMSEP it show error could not find function plsr, RMSEP etc. How I can calculate PLS, R2, RMSEP, PCR, MVR using pls package in R. Thanking you........ -- Nitish Kumar Mishra Junior Research Fellow BIC, IMTECH, Chandigarh, India E-Mail Address: nitish_km at yahoo.com nitish at imtech.res.in
2005 Sep 04
2
Help: PLSR
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", model = TRUE, x = TRUE, y = TRUE) from the model, I wish to know the values of Xvar (the amount of X-var...
2012 Oct 04
1
data structure for plsr
I am having a similar problem understanding the data structure of the "yarn" dataset described in the "[R] data structure for plsr" posts. I have spectroscopic data I'd like to run through a PLSR and have read the tutorial series, but still do not understand the data format required for the code to process my data. My current data structure consists of a .csv file read into R containing 15 columns (a charcoal dilution...
2010 Feb 21
2
cross-validation in plsr package
Dear readers, can anyone give an example how to use cross-validation in the plsr package. I miss to find the number of factors proposed by cross-validation as optimum. Thank you Peter -- View this message in context: http://n4.nabble.com/cross-validation-in-plsr-package-tp1563815p1563815.html Sent from the R help mailing list archive at Nabble.com.
2010 Jul 08
4
Column header strategy
...D.1 D.2 D.3 D.4 D.5 , etc. all the way to D.185 I was under the impression from several R examples in pls that if you name your columns like above, you should be able to simply call all the D factors with "D", instead of going in and putting a plus sign between each column. miceD <- plsr(pID50~D, ncomp=10,data = micetitletest) Error in model.frame.default(formula = pID50 ~ D, data = micetitletest) : invalid type (closure) for variable 'D' VS. miceD <- plsr(pID50 ~ D.1 + D.2 + D.3 + D.4 etc. to D.185 , ncomp=10, data = micetitletest) What am I missing above that'...
2005 Aug 27
1
PLSR: model notation and reliabilities
I'm new in both R and statistics. I "did my homework", I tried the archives and whatever I managed to get from the sources, but still I need assistance with the plsr package. I have a model with 2 core determinants D1 and D2, made by 3 indicators each (D1a,D1b,D1c and so on). Also I have 2 moderating variables (m1,m2), where m1 moderates D1 and m2 modarates D2. The dependent variable (Y) is also constructed by 3 indicators (Y1,Y2,Y3). Actually my model is...
2011 May 17
1
help with PLSR Loadings
Hi When I call for the loadings of my plsr using the command, x <- loadings(BHPLS1) my loadings contain variable names rather than numbers. >str(x) loadings [1:94727, 1:10] -0.00113 -0.03001 -0.00059 -0.00734 -0.02969 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:94727] "PCIList1" "PCIList2" &q...
2011 Nov 25
1
plsr how to return my formula
Hi, I have experimental response (Y) and many (important or not) actions (X). I want to create model: Y = aX1 + bX2 + ... + eX5 (1) from few most important actions of course. As I understand I have to use plsr for this task. I learned read.table and plsr R functions and how to plot some results from them, but still do not understand how I can get (or construct) function I need (function 1)? [[alternative HTML version deleted]]
2013 Jul 13
1
Alternative to eval(cl, parent.frame()) ?
Dear developeRs, I maintain a package 'pls', which has a main fit function mvr(), and functions plsr() and pcr() which are meant to take the same arguments as mvr() and do exactly the same, but have different default values for the 'method' argument. The three functions are all exported from the name space. In the 'pre namespace' era, I took inspiration from lm() and implemented...
2017 Jul 13
0
Quadratic function with interaction terms for the PLS fitting model?
...will work if NIR is a matrix, not a data.frame. > The degree argument apparently *must* be explicitly named if NIR is > not a numeric vector. AFAICS, this is unclear or unstated in ?poly. I still get the same error with: library(pld) data(gasoline) gasTrain <- gasoline[1:50,] gas1 <- plsr(octane ~ poly(as.matrix(NIR), 2), ncomp = 10, data = gasTrain, validation = "LOO") Error in rep.int(rep.int(seq_len(nx), rep.int(rep.fac, nx)), orep) : invalid 'times' value > gas1 <- plsr(octane ~ poly(as.matrix(gasTrain$NIR), degree=2), ncomp = 10, data = gasTrain, v...
2017 Jul 13
4
Quadratic function with interaction terms for the PLS fitting model?
...tion with interaction terms. But I am not sure >> how. I will use an example to illustrate my problem: >> >> Following the example in the PLS manual: >> ## Read data >> data(gasoline) >> gasTrain <- gasoline[1:50,] >> ## Perform PLS >> gas1 <- plsr(octane ~ NIR, ncomp = 10, data = gasTrain, validation = "LOO") >> >> where octane ~ NIR is the model that this example is fitting with. >> >> NIR is a collective of variables, i.e. NIR spectra consists of 401 diffuse >> reflectance measurements from 900 to 17...
2012 Feb 21
2
Dataframes in PLS package
...56900 3 1 109 69 1 1 94 44300 6 1 221 61 0 1 72 79800 6 0 110 40 1 1 48 17600 5 1 194 41 0 0 85 58100 4 0 120 76 1 1 19 76700 3 0 210 61 0 0 41 37600 1 0 243 101 1 1 57 40800 5 1 163 62 0 1 64 400 3 0 So the h. and the c. columns should be matrices that I can regress in plsr function: apls <- plsr(h ~ c, data = C) summary(apls) But this gives me: [34] ERROR: invalid type (list) for variable 'h' I can get the plsr function to work with scalars for both predictor and response. Can anyone tell me where I have gone wrong on the pls input? apls <- p...
2007 Jul 06
1
about R, RMSEP, R2, PCR
Hi, I want to calculate PLS package in R. Now I want to calculate R, MSEP, RMSEP and R2 of PLSR and PCR using this. I also add this in library of R. How I can calculate R, MSEP, RMSEP and R2 of PLSR and PCR in R. I s any other method then please also suggest me. Simply I want to calculate these value. Thanking you. -- Nitish Kumar Mishra Junior Research Fellow BIC, IMTECH, Chandigarh, India...
2011 Jun 08
1
Help with plotting plsr loadings
Hi I am attempting to do a loadings plot from a plsr object. I have managed to do this using the gasoline data that comes with the pls package. However when I conduct this on my dataset i get the following error message. >plot(BHPLS1, "loadings", comps = 1:2, legendpos = "topleft", labels = "numbers", >xlab =...