i study the code of function ave,but i can understand one line of the syntax.
ave
function (x, ..., FUN = mean)
{
n - length(list(...))
if (n) {
g - interaction(...)
split(x, g) - lapply(split(x, g), FUN)
}
else x[] - FUN(x)
x
}
my question is : what does
Votre message pour la liste vingtcinquante a t transmis au(x) modrateur(s)
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
i have the data x.1
x.1 - data.frame(income=runif(100)*1,
+ edu=sample(c('hs','col','none'),100,T),y=rnorm(100)*100)
and i want to get :
income y
col 5526.726 -11.00956
hs 4196.036 -10.03861
none 4308.111 -28.69549
5526.726 is the mean income for col, 4196.036 is the
Hello,
I am having trouble loading Matrix (0.96-3) in self-compiled R-2.1.1-
beta, and self compiled R.app (got it a couple of days ago via:
svn co https://svn.r-project.org/R-packages/trunk/Mac-GUI Mac-GUI )
on Mac OS 10.4.1.
The problem I get when I try to load Matrix is the following: (I
ronggui wrote:
i have the data x.1
x.1 - data.frame(income=runif(100)*1,
+ edu=sample(c('hs','col','none'),100,T),y=rnorm(100)*100)
and i want to get :
income y
col 5526.726 -11.00956
hs 4196.036 -10.03861
none 4308.111 -28.69549
5526.726 is the mean
ronggui wrote:
i study the code of function ave,but i can understand one line of the syntax.
ave
function (x, ..., FUN = mean)
{
n - length(list(...))
if (n) {
g - interaction(...)
split(x, g) - lapply(split(x, g), FUN)
}
else x[] - FUN(x)
x
}
That's a call to the replacement function split-(), which is defined as:
get(split-.default)
function (x, f, value)
{
ix - split(seq(along = x), f)
n - length(value)
j - 0
for (i in ix) {
j - j%%n + 1
x[i] - value[[j]]
}
x
}
Andy
From: ronggui
i
thank you.
when i examined the ?split, i have figure out the answer.
still,thank you very much.and sorry for my igorance.
On Sun, 19 Jun 2005 09:41:38 -0400
Liaw, Andy [EMAIL PROTECTED] wrote:
That's a call to the replacement function split-(), which is defined as:
get(split-.default)
I think you need to ask on the R-sig-mac list with many more details.
My understanding is that Matrix.so should import something like
libintl_dgettext and that the R executable should export it. Hence my
suspicion is that your build of R is the problem rather than the
installation of Matrix.
Dear Prof. Ripley,
Thank you for the suggestion. I will subscribe to that list as well
(and direct my mac-specific issues there)
Constantinos Antoniou
On 19 2005, at 6:43 , Prof Brian Ripley wrote:
I think you need to ask on the R-sig-mac list with many more details.
My understanding is
Hi:
I'm trying to create a package to pass to someone else to use a group of
functions with help files. I'm working on Windows XP.
Step One: I use the example
## two functions and two data sets :
f - function(x,y) x+y
g - function(x,y) x-y
d - data.frame(a=1, b=2)
You have created a source package, and c:/R/rw2010/library is not the
right place for a source package. You need to move it somewhere else and
INSTALL it, as described in the rw-FAQ. (You need to move it because it
would be installed into that directory and you are not allowed to clobber
the
On 6/19/05, Prof Brian Ripley [EMAIL PROTECTED] wrote:
You have created a source package, and c:/R/rw2010/library is not the
right place for a source package. You need to move it somewhere else and
INSTALL it, as described in the rw-FAQ. (You need to move it because it
would be installed
Hello there,
I use function qda (MASS package) to obtain a qda object, but how to
plot this object?
Thank you,
Shengzhe
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
Hello there,
I plot a curve together with the specific dots on the line, but how to
plot the standard deviation on these dots just as the green bands in
the attached file, and also the purple dotted lines?
Thank you,
Shengzhe
__
On 6/19/05, wu sz [EMAIL PROTECTED] wrote:
I use function qda (MASS package) to obtain a qda object, but how to
plot this object?
Check out predplot in this file:
system.file(scripts/ch12.R, package = MASS)
__
R-help@stat.math.ethz.ch mailing list
On 6/19/05, wu sz [EMAIL PROTECTED] wrote:
I plot a curve together with the specific dots on the line, but how to
plot the standard deviation on these dots just as the green bands in
the attached file, and also the purple dotted lines?
There is nothing attached.
Hi,
Following on from suggestions made last week, I decided to install R 2.1.0
on my Linux machine. I'm running into a problem there however, as shown:
make[1]: Entering directory
`/d0/home/fgibbons/tmp/R2.1.0/R-2.1.0/src/library/Recommended'
make[2]: Entering directory
The Fedora upgrade process should normally install backward compatibility
libraries when it finds an RPM linked to a library (or library version) that
isn't in the new release. In this case compat-libf2c-32 provides libg2c on
FC4, and it should be installed on your system if you previously had R
Hello,
I want to estimate the parameters of a binomial distributed rv using MLE.
Other distributions will follow.
The equation system to solve is not very complex, but I've never done such
work in R and don't have any idea how to start...
The system is:
(1) n*P = X
(2)[sum {from
Frank Gibbons [EMAIL PROTECTED] writes:
Hi,
Following on from suggestions made last week, I decided to install R 2.1.0
on my Linux machine. I'm running into a problem there however, as shown:
make[1]: Entering directory
`/d0/home/fgibbons/tmp/R2.1.0/R-2.1.0/src/library/Recommended'
I would like to draw a sample from a linear mixed model y=Xb+Zu+e which has
been fitted with lme(), i.e. a model y ~ N(Xb, C), where C=Z cov(u) Z' + cov(e).
I've tried to figure out how to extract C from an lme object, because that
would solve my problem when also using the predict() function,
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html;. If you had provided more
information about what you tried, it might be easier for someone else to
offer effective help. In particular, what did you try with fitdistr,
and why do you think it didn't work
Hello there,
I plot a curve together with the specific dots on the line, but how to
plot the standard deviation on these dots just as the green bands in
the attached file, and also the purple dotted lines?
Thank you,
Shengzhe
__
On 6/19/05, wu sz [EMAIL PROTECTED] wrote:
Hello there,
I plot a curve together with the specific dots on the line, but how to
plot the standard deviation on these dots just as the green bands in
the attached file, and also the purple dotted lines?
There is still no attached file. Try:
I forgot to cc: R-help on this reply.
-- Forwarded message --
From: Douglas Bates [EMAIL PROTECTED]
Date: Jun 19, 2005 7:55 PM
Subject: Re: [R] How to sample from a linear mixed model
To: Sren Hjsgaard [EMAIL PROTECTED]
On 6/19/05, Sren Hjsgaard [EMAIL PROTECTED] wrote:
I would
Hi Veronika,
StepAIC does not do any test. But you may do a likelihood ratio test
on the difference between deviance of two models to judge which model
to use, simply like this,
1 - pchisq(deviance.i - deviance.j, df.i - df.j)
And then check whether the returned p value is small enough...
version
_
platform i386-pc-linux-gnu
arch i386
os linux-gnu
system i386, linux-gnu
status
major2
minor1.0
year 2005
month04
day 18
language R
OS:debian linux
# R CMD INSTALL /home/ronggui/Matrix_0.96-3.tar.gz
.
s-3 -L/usr/lib/R/lib -lR
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On 20 June 2005 at 10:07, ronggui wrote:
| OS:debian linux
| # R CMD INSTALL /home/ronggui/Matrix_0.96-3.tar.gz
|
| .
| s-3 -L/usr/lib/R/lib -lR
| /usr/bin/ld: cannot find -lblas-3
| collect2: ld returned 1 exit status
| make: *** [Matrix.so] Error 1
| ERROR: compilation failed for
help.search(fisher exact test) says:
fisher.test(stats) Fisher's Exact Test for Count Data
Andy
From: Briggs, Meredith M
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
On 19 June 2005 at 22:18, Dirk Eddelbuettel wrote:
|
| On 20 June 2005 at 10:07, ronggui wrote:
| | OS:debian linux
| | # R CMD INSTALL /home/ronggui/Matrix_0.96-3.tar.gz
| |
| | .
| | s-3 -L/usr/lib/R/lib -lR
| | /usr/bin/ld: cannot find -lblas-3
| | collect2: ld returned 1 exit
Thank you all for your help.
There was an easy solution to my problem:
read.csv2(example.csv, dec=., header=TRUE)
or
Mean1 - as.numeric(as.character(Mean1))
-Johanna
Lainaus Ivar Herfindal [EMAIL PROTECTED]:
Thomas Lumley wrote:
On Fri, 17 Jun 2005, Johanna Sundvik wrote:
33 matches
Mail list logo