Displaying 20 results from an estimated 6000 matches similar to: ""mvr" function"
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
2005 May 12
1
pls -- crossval vs plsr(..., CV=TRUE)
Hi,
Newbie question about the pls package.
Setup:
Mac OS 10.3.9
R: Aqua GUI 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 =
2008 Jul 01
1
Help in using PCR
Hi,
Currently I have a dataset of 2400*408. And I would like to apply PCR method
to study the any correlation between the tests.
My current data is in data.frame and I have formed horizontal(1-407) to be
the exact data, and (408) to be my results data(Yes and No)
I have also binarized these Yes and No to 1 and -1s.
However, when I refer to PCR manual on R, the example of yarn.pcr <-
2004 Aug 27
1
predict.mvr error message
What version of R, what version of pls.pcr, and on what OS? Have you
checked whether your versions of software are up to date? I get:
> n <- 1350
> p <- 180
> y <- rnorm(n)
> x <- matrix(sample(0:1, n*p, replace=TRUE), n, p)
> fit <- mvr(x, y, method="SIMPLS", validat="none", ncomp=2)
> xt <- matrix(sample(0:1, 312*p, replace=TRUE), 312,
2005 Jun 06
1
Help package pls.pcr
Hello!
I need help to use the package pls.pcr in R.
I installed R in an IRIX 6.5, using the version of R 0.64.1 from
sgifreeware(I didn't get to install the newest version using make). I
need to use the package pls.pcr and when I give the command:
# R
R : Copyright 1999, The R Development Core Team
Version 0.64.1 (May 8, 1999)
R is free software and comes with ABSOLUTELY NO
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")
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
2007 Oct 23
1
Compute R2 and Q2 in PLS with pls.pcr package
Dear list
I am using the mvr function of the package pls.pcr to compute PLS
resgression using a X matrix of gene expression variables and a Y matrix
of medical varaibles.
I would like to obtain the R2 (sum of squares captured by the model) and
Q2 (proportion of total sum of squares captured in leave-one-out cross
validation) of the model.
I am not sure if there are specific slots in the
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,
2011 Apr 18
2
Predicting with a principal component regression model: "non-conformable arguments" error
Hello all,
I have generated a principal components regression model using the pcr()
function from the PLS package (R version 2.12.0). I am getting a
"non-conformable arguments" error when I try to use the predict() function
on new data, but only when I try to read in the new data from a separate
file.
More specifically, when my data looks like this
#########training data
2003 Jul 24
1
pls regression - optimal number of LVs
Dear R-helpers,
I have performed a PLS regression with the mvr function from the pls.pcr package an I have 2 questions :
1- do you know if mvr automatically centers the data ? It seems to me that it does so...
2- why in the situation below does the output say that the optimal number of latent variables is 4 ? In my humble opinion, it is 2 because the RMS increases and the R2 decreases when 3 LVs
2004 Nov 15
0
how to obtain predicted labels for test data using "kerne lpls"
You need to do some extra work if you want to do classification with a
regression method. One simple way to do classification with PLS is to code
the classes as 0s and 1s (assuming there are only two classes) or -1s and
1s, fit the model, then threshold the prediction; e.g., those with predicted
values < 0.5 (in the 0/1 coding) get labeled as 0s. There's a predict()
method for mvr
2005 Apr 21
1
Strange data frame
Hello,
I'm playing around with the PLS package and found a data set (NIR) whose
structure I don't understand. Forgive me if this is a stupid question,
as I feel like it must be since I am less experienced with aspects of
modeling.
My problem, the pls NIR data frame does not seem to be a typical data
frame as, while it is a list, its variables are not of equal length.
Furthermore, I have
2011 Nov 30
1
Invalid number of components, ncomp
Error in mvr(Kd_nM ~ qsar, ncomp = 6, data = my, validation = "CV", method = "kernelpls") :
Invalid number of components, ncomp
How I can fix this?
[[alternative HTML version deleted]]
2010 May 11
1
Gasoline Data in pls package
Hi -
I am using pls package for some pcr computations. There is a data set called
gasoline.
Would someone be able to tell me what command(s) could be used to produce
this graph in R? I am not sure where the log(1/R) - Y-axis - are coming
from
Thanks much
Ravi
2004 Nov 15
0
how to obtain predicted labels for test data using "kernelpls"
Dear members,
My name is Seungho Huh. I am a statistician who tries to use the Kernel
PLS method in a classification problem. I am sending this email to ask
you something about the "kernelpls" function in R (pls.pcr package).
I would like to obtain the predicted Y values for test data, using the
Kernel PLS method. Let's take the example in the R help:
> data(NIR)
>
2003 Dec 09
2
problem with pls(x, y, ..., ncomp = 16): Error in inherit s( x, "data.frame") : subscript out of bounds
I don't know the details of pls (in the pls.pcr package, I assume), but if
you use validation="CV", that says you want to use CV to select the best
number of components. Then why would you specify ncomp as well?
Andy
> From: ryszard.czerminski at pharma.novartis.com
>
> When I try to use ncomp parameter in pls procedure I get
> following error:
>
> >
2004 Feb 01
5
Stepwise regression and PLS
Dear all,
I am a newcomer to R. I intend to using R to do stepwise regression and
PLS with a data set (a 55x20 matrix, with one dependent and 19
independent variable). Based on the same data set, I have done the same
work using SPSS and SAS. However, there is much difference between the
results obtained by R and SPSS or SAS.
In the case of stepwise, SPSS gave out a model with 4 independent
2009 Mar 03
3
PLS regression on near infrared (NIR) spectra data
Dear collegues,
I´ ve worked with near infrared (NIR) spectroscopy to assess chemical,
physical, mechanical and anatomical properties of wood.
I use "The Unscrambler" software to correlate the matrix of dependent
variables (Y) with the matrix of spectral data (X) and I would like to
migrate to R. The matrix of spectral variables is very large (2345 columns
and n lines, where n =
2010 May 11
1
Help with Names
Hi - a newbie question, if someone can please help....
I want to change X1, X2,,.....to X.1 X.2 etc in the names below. I am using
the Principal Component Regression function (pcr) and it seems to want it
this way
> datap3.pcr <- pcr(water ~ X, 10, data = datap3, Validation ="cv")
Error in model.frame.default(formula = water ~ X, data = datap3) :
invalid type (list) for