Displaying 20 results from an estimated 300 matches similar to: "Invalid number of components, ncomp"
2011 Dec 01
1
question about plsr() results
Hi,
With some help I learned how to use plsr(Y~x, 2, data=my) function in R (and build "my" from vector "Y" and matrix "x").
But still I have question about results interpretation. In the end I want to construct prediction function in form:
Y=a1x1+a2x2
But I do not understand how to do it. Documentation do not describe this.
Thanks for help. ;)
[[alternative HTML
2017 Dec 05
2
PLS in R
Hello, I need help with a partial least square regression in R. I have read
both the vignette and the post on R bloggers but it is hard to figure out
how to do it. Here is the script I wrote:
library(pls)
plsrcue<- plsr(cue~fb+cn+n+ph+fung+bact+resp, data = cue, ncomp=7,
na.action = NULL, method = "kernelpls", scale=FALSE, validation = "LOO",
model = TRUE, x = FALSE, y =
2011 Oct 18
1
problem in exceuting PLS
Hi
I'm performing a PLS
This is my data present in a file
Year Y X2 X3 X4 X5 X6
1960 27.8 397.5 42.2 50.7 78.3 65.8
1960 29.9 413.3 38.1 52 79.2 66.9
1961 29.8 439.2 40.3 54 79.2 67.8
1961 30.8 459.7 39.5 55.3 79.2 69.6
1962 31.2 492.9 37.3 54.7 77.4 68.7
My R-code
Data <- read.csv("C:/TestData.csv")
variable=names(Data)[4:8]
dataset=NULL
dataset$X=NULL
len=length(variable)
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 May 27
1
R-1.9.0: Error in paste(ncomp, "LV's") : Argument "ncomp" is missing, with no default
Is it just my installation or bug in 1.9.0 ?
The same thing works fine in 1.8.1
Best regards,
Ryszard
# R-1.9.0
library(pls.pcr)
nr <- 8; ndim <- 2
x <- matrix(rnorm(nr*ndim), nrow=nr)
y <- as.matrix(x[,1])
for (i in 2:ndim) y <- y + x[,i]
y <- y + rnorm(length(y))
m <- pls(x,y,validation='CV')
# Error in paste(ncomp, "LV's") : Argument
2005 Oct 10
1
text(x,y,greek character)
Dear list,
I would like to plot points with two types of labels, one at the data
point (the name of the point) and another offset a bit with another
factor which is either of the two greek characters alpha or beta. I have
tried to get the routine to plot a greek character with expression() or
with substitute() and have not yet had any success. The following only
plots the word in english in
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 =
2003 Sep 29
2
parametric surfaces
Hi,
does anyone know how to plot 3D parametric surface,e.g ellipsoid:
x=a*cos(s)*cos(t),
y=b*sin(s)*cos(t),
z=sin(t);
s in [0,2*pi],
t in [-pi,pi].
Vytautas Maniusis,
Vilnius University, Lithuania
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
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)
>
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
2017 Jul 13
3
How to formulate quadratic function with interaction terms for the PLS fitting model?
I have two ideas about it.
1-
i) Entering variables in quadratic form is done with the command I
(variable ^ 2) -
plsr (octane ~ NIR + I (nir ^ 2), ncomp = 10, data = gasTrain, validation =
"LOO"
You could also use a new variable NIR_sq <- (NIR) ^ 2
ii) To insert a square variable, use syntax I (x ^ 2) - it is very
important to insert I before the parentheses.
iii) If you want to
2017 Jul 13
0
How to formulate quadratic function with interaction terms for the PLS fitting model?
Below.
-- Bert
Bert Gunter
On Thu, Jul 13, 2017 at 3:07 AM, Luigi Biagini <luigi.biagini at gmail.com> wrote:
> I have two ideas about it.
>
> 1-
> i) Entering variables in quadratic form is done with the command I
> (variable ^ 2) -
> plsr (octane ~ NIR + I (nir ^ 2), ncomp = 10, data = gasTrain, validation =
> "LOO"
> You could also use a new variable
2011 Jul 25
1
Can't rename win7 machine in samba domain
Hello,
Samba 3.5.8-68 on F15 64bit with all latest updates.
Part of smb.conf file:
set primary group script = /usr/sbin/usermod -g %g %u
add user script = /usr/sbin/useradd -g 100 %u
add group script = /usr/sbin/groupadd %g
add user to group script = /usr/bin/gpasswd -a %u %g
add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s
/bin/false -M %u
delete user
2010 Mar 02
1
acl_tdb backup
Hello,
What is simplest way to backup/restore acl's if using acl_tdb module?
Thanks.
2008 May 01
4
efficient code - yet another question
Dear list members;
The code given below corresponds to the PCA-NIPALS (principal
component analysis) algorithm adapted from the nipals function in the
package chemometrics. The reason for using NIPALS instead of SVD is
the ability of this algorithm to handle missing values, but that's a
different story. I've been trying to find a way to improve (if
possible) the efficiency of the code,
2004 May 24
2
Tramo-seats
Working - among other things- in the field of (short & long term) electricity
forecast, we are now using too many & too expensive pieces of licensed
software: SAS, SPSS, EViews. This "sedimentation" is due to the fact that
my predecessors in the past used different consultant companies to manage
each procedure.
Having attended the useR2004! Conference with the aim of assessing
2010 Jul 08
4
Column header strategy
Hopefully simple question: What is the best way to name, and treat factor
columns for data that has lots of columns?
This is my column list:
id pID50 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
2017 Jul 16
2
How to formulate quadratic function with interaction terms for the PLS fitting model?
> On Jul 13, 2017, at 7:43 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote:
>
> Below.
>
> -- Bert
> Bert Gunter
>
>
>
> On Thu, Jul 13, 2017 at 3:07 AM, Luigi Biagini <luigi.biagini at gmail.com> wrote:
>> I have two ideas about it.
>>
>> 1-
>> i) Entering variables in quadratic form is done with the command I
>>