Displaying 20 results from an estimated 3000 matches similar to: "package pls"
2009 Jul 23
1
dimension trouble for a matrix
Dear R People:
I'm having trouble with something that should be very simple.
I'm setting up a matrix outside of a loop and writing items into it
during the loop.
Here is the output:
> glob3b("sites.info")
dim 27 3
[1] "/raid1/osg-app"
Error in xy[i, ] : incorrect number of dimensions
Here is the function:
> glob3b
function(xx) {
x.df <-
2008 Feb 07
2
a kinder view of Type III SS
A young colleague (Matthew Keller) who is an ardent fan of R is teaching me
much about R and discussions surrounding its use. He recently showed me
some of the sometimes heated discussions about Type I and Type III errors
that have taken place over the years on this listserve. I'm presumptive
enough to believe I might add a little clarity. I write this from the
perspective of someone old
2006 Mar 15
1
(newbie) Weighted qqplot?
Folks,
Normally, in a data frame, one observation counts as one observation
of the distribution. Thus one can easily produce a CDF and (in Splus
atleast) use cdf.compare to compare the CDF (BTW: what is the R
equivalent of the SPlus cdf.compare() function, if any?)
However, if each point should not count equally, how can I weight the
points before comparing the distributions? I was thinking of
2017 Nov 24
2
number to volume weighted distribution
Hi Duncan
I tried Ecdf and/or wtd.quantile from Hmisc and it is working (probably).
Ecdf(x, q=.5)
Ecdf(x, weights=xw,col=2, add=T, q=.5)
wtd.quantile(x)
0% 25% 50% 75% 100%
10 10 10 100 300
wtd.quantile(x, weights=xw, type="i/n")
0% 25% 50% 75% 100%
10.0000 138.8667 192.5778 246.2889 300.0000
But could you please be more specific in this?
>
2017 Nov 24
0
number to volume weighted distribution
Hi Petr,
I think that Duncan suggests something like this:
x<- c(rep(10,20), rep(300,5), rep(100, 10))
tx <- table(x)
prop.x <- tx / sum(tx)
vx <- as.integer(names(tx))
prop.wx <- tx * vx / sum(tx * vx)
plot(ecdf(x))
plot(vx, cumsum(prop.x), ylim = 0:1)
plot(vx, cumsum(prop.wx), ylim = 0:1)
Best regards,
Thierry
ir. Thierry Onkelinx
Statisticus / Statistician
Vlaamse
2006 May 09
3
What does this mean?
def cas
casses = [@cas.ss,@cas.s,@cas.xl,@cas.l,@cas.m,@cas.w,@cas.xw]
casses.each do |cas|
if cas >= 10
@user.send(cas) -= 1
@user.save!
end
end
my error:
app/controllers/battle_controller.rb:383: parse error, unexpected
tOP_ASGN, expecting kEND
@user.send(cas) -= 1
^
app/controllers/battle_controller.rb:388: parse error, unexpected $,
expecting kEND
--
Posted via
2007 May 21
1
PLS in R and SAS
Dear all:
I am comparing the PLS outputs of R and SAS for the following data set:
Y x1 x2 x3
3 6 2 2
3 1 5 5
4 7 4 1
5 6 5 6
2 4 3 2
8 5 0 9
where Y is the dependent variable and x1, x2, x3 are the independent variables. I found several PLS algorithms in R (NIPALS,SIMPLS,KERNEL PLS). SAS has SIMPLS and NIPALS.
The following are the NIPALS calculations of
2006 May 08
2
Making a array to use with @user.
Hi all,
I made this array:
@army_types = ["ss","s","xl","l","m","w","xw"]
but, I want to be able to go like this
@army_types.each do |st|
@user.st
end
but, I get the error that "@user.st" st is not a valid feild for the
table user.
Is there a way to get around MySQL running it first?
--
Posted via
2006 May 12
1
Some error about adding.
Ok so I''m trying to make a little exchange 3 for 1 of 1 higher rank here
is the code in the controller:
def exch_link
@id = @session[:user].id
@type = @params[:type]
exch(@id,@type)
end
def exch(user_id,this_type)
@user = User.find(:condtions => "id = " + user_id)
@ranks =
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
2017 Jun 29
1
NUT supporting Modbus TCP
Yeah, I have its datasheet (it's a Xantrex XW invertor by the way). I do not know why creating a more-or-less generic driver is an issue. Of course, there are Modbus beasts that can scare everyone but mostly one would need to read either intreger or float numbers out of Modbus registers in order to decide whether or not to start or stop the shutdown process.
24 ???? 2017 ?. 19:25:14
2006 Jul 06
1
PLS method
dear all,
I am a new comer to R and statistic. Now I have a little confuse about the
package pls.
I have to use 5 components to form a model. There are strong relationship
between some of the components, which leads to the changes of the sign of
each coeficeince, of course this is unwanted when using the normal
regression way. So I choose the way of PLS, which is good at solve this kind
of
2006 Oct 25
2
[PATCH] Edge buttons
Here are my patches to add edge + button functionality.
I still feel that there is a problem with gconf, but I have just made it
so that the edge button functionality works.
I have included a patch for gconf to display AnyButton if it is set
to 0. There is also a patch to make the edge size configurable
because 1 pixel was too small and the mouse keeps slipping off
when using it for the
2007 Jul 04
1
Calling C Code from R
Hi R Users,
Thanks in advance.
I am using R-2.5.1 on Windows XP.
I am trying to call C code (testCX1.C) from R. testCX1.c calls another C code (funcC1.c) and returning a value to testCX1.c. I like to have this value in R.
My steps are below:
1. R CMD SHLIB testCX1.c funcC1.c (at command propmt)
2. It creates testCX1.dll with warning (but testCX1.dll works):
2017 Nov 24
0
number to volume weighted distribution
On 24/11/2017 6:27 AM, PIKAL Petr wrote:
> Dear all
>
> Strictly speaking it is not R question but as you are the most capable persons I know I give it a try.
>
> I am strugling with recalculation of number weighted to volume weighted distribution.
>
> Suppose I have objects (cubes) with size
>
> x<- c(rep(10,20), rep(100, 10), rep(300,5))
> I can get
>
2006 May 04
6
Login generator ALWAYS says login unseccesfull
Hey I just ran this "ruby script/generate login loging_in" here is my
SQL:
CREATE TABLE `users` (
`id` int(11) NOT NULL auto_increment,
`user_name` varchar(80) default NULL,
`login` varchar(120) NOT NULL default '''',
`last_update` timestamp NOT NULL default ''0000-00-00 00:00:00'',
`last_attack` timestamp NOT NULL default ''0000-00-00
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
2005 Oct 11
0
pls version 1.1-0
Version 1.1-0 of the pls package is now available on CRAN.
The pls package implements partial least squares regression (PLSR) and
principal component regression (PCR). Features of the package include
- Several plsr algorithms: orthogonal scores, kernel pls and simpls
- Flexible cross-validation
- A formula interface, with traditional methods like predict, coef,
plot and summary
- Functions
2005 Oct 11
0
pls version 1.1-0
Version 1.1-0 of the pls package is now available on CRAN.
The pls package implements partial least squares regression (PLSR) and
principal component regression (PCR). Features of the package include
- Several plsr algorithms: orthogonal scores, kernel pls and simpls
- Flexible cross-validation
- A formula interface, with traditional methods like predict, coef,
plot and summary
- Functions
2006 Feb 23
0
pls version 1.2-0
Version 1.2-0 of the pls package is now available on CRAN.
The pls package implements partial least squares regression (PLSR) and
principal component regression (PCR). Features of the package include
- Several plsr algorithms: orthogonal scores, kernel pls and simpls
- Flexible cross-validation
- A formula interface, with traditional methods like predict, coef,
plot and summary
- Functions