Re: [R] MCD distance

2003-06-09 Thread Prof Brian Ripley
There first two *are* in the lqs package: you just need to use mahalanobis() with cob.rob(). I've never heard of BACON. On Fri, 6 Jun 2003, osama wrote: I would like to compare robust distance measures,e.g. MVE, MCD, BACON, as measures of leverage and to detect outliers in X-space . I

[R] XML package for R

2003-06-09 Thread Dr Mushtaq Ahmed
Hi, Does anyone have a binary of XML package for 1.7.0 on Windows? I have searched it at the RSXML pages (http://www.omegahat.org/RSXML/ ) but it seems it is no longer support. Any pointers for the compiled version will be appreciated. Regards, mushtaq [[alternate HTML version

Re: [R] XML package for R

2003-06-09 Thread Dr Mushtaq Ahmed
thanks :) -mushtaq - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] To: Dr Mushtaq Ahmed [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, June 09, 2003 12:44 PM Subject: Re: [R] XML package for R See the ReadMe in the appropriate area on CRAN (XML is also a CRAN

Re: [R] looking for Prof Bates' file

2003-06-09 Thread Peter Dalgaard BSA
Viet Nguyen,,, [EMAIL PROTECTED] writes: Hello I'm reading up on fitting truncated Weibull distribution to data. There are posts in 2002 that point to this presentation by Prof Bates: http://www.stat.wisc.edu/~bates/JSM2001.pdf but now the file is not there. I can't find it anywhere

Re: [R] Beginner questions

2003-06-09 Thread Uwe Ligges
Michele Grassi wrote: Hi, when i create a new variable e.g var-c(1,2,3,...), how can i delete one or more osservation? See An Introduction to R, Section 2.7. When i draw my scatterplot,i want to identify, in the graph,some point whit x,y coordinates. How can i do it? See An Introduction

[R] installing XML in linux

2003-06-09 Thread Mahbub Latif
Hi, I was trying to install XML package in a linux (dabian) machine and got the following error message. I am not sure whether there is any error in my linux installion. I appreciate suggestions to install XML properly in this machine. Thanks in advance. Mahbub. ##Errors $ R CMD

Re: [R] executable R scripts

2003-06-09 Thread Greg Louis
On 20030608 (Sun) at 1735:14 -0700, John Zedlewski wrote: Hi, I'm a newbie trying to make an R program executable on UNIX, just like one would write an executable perl script by putting #!/usr/bin/perl in the first line, and so on. It seems, though, that this would only work if I use the

Re: [R] looking for Prof Bates' file

2003-06-09 Thread Douglas Bates
Peter Dalgaard BSA [EMAIL PROTECTED] writes: Viet Nguyen,,, [EMAIL PROTECTED] writes: Hello I'm reading up on fitting truncated Weibull distribution to data. There are posts in 2002 that point to this presentation by Prof Bates: http://www.stat.wisc.edu/~bates/JSM2001.pdf

[R] Re: [BioC] installing XML in linux

2003-06-09 Thread Douglas Bates
You will need to install the Debian package libxml-dev before you can install the R XML package. Mahbub Latif [EMAIL PROTECTED] writes: I was trying to install XML package in a linux (dabian) machine and got the following error message. I am not sure whether there is any error in my linux

RE: [R] Basic question on applying a function to each row of ada taframe

2003-06-09 Thread Liaw, Andy
Another neat way is: with(DF, foo(x, w)) HTH, Andy -Original Message- From: peter leonard [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2003 4:35 PM To: [EMAIL PROTECTED] Subject: [R] Basic question on applying a function to each row of a dataframe Hi, I have a

[R] Nested anovas

2003-06-09 Thread Suzanne E. Blatt
Hello, Is anyone out there doing nested anovas? I'm familiar with the notation to designate the nesting in SAS but can't seem to find any for R. How can I specify the nesting levels? Thanks, Suzanne __ McAfee VirusScan Online

[R] Re: [BioC] installing XML in linux

2003-06-09 Thread Mahbub Latif
Thanks a lot Prof Bates. One more thing... What Debian packages should I install to install R packages Rgraphviz and rhdf5? Mahbub. --- Douglas Bates [EMAIL PROTECTED] wrote: You will need to install the Debian package libxml-dev before you can install the R XML package. Mahbub Latif

RE: [R] Basic question on applying a function to each row of a dataframe

2003-06-09 Thread Ramzi Feghali
Another another neat way is: DF - data.frame(x=1:4, y=rep(1,4)) foo - function(z,x,y)z[x]+z[y] apply(DF,1,foo,x=x,y=y) 1 2 3 4 2 3 4 5 or DF - data.frame(x=1:4, y=rep(1,4)) foo - function(z)z-x+y foo(DF) [1] 2 3 4 5 Liaw, Andy [EMAIL PROTECTED] wrote: Another neat way is: with(DF,

[R] Loops question

2003-06-09 Thread Ramzi Feghali
Hello Mr Ripley, i was waiting you to ask and if you don't mind if there is a fast way in R to do these loops made with R and that takes a week because my matrix is with thousand of rows. I got another method that is more fast and is utilised by many packages : interfacing with other

Re: [R] Basic question on applying a function to each row of a dataframe

2003-06-09 Thread Sundar Dorai-Raj
Yes, but very slow for this example when the data.frame gets large R DF - data.frame(x = rnorm(4), y = rnorm(4)) R foo - function(z, x, y) z[x] + z[y] R bar - function(x, y) x + y R system.time(x - apply(DF, 1, foo, x = x, y = y)) [1] 6.94 0.04 7.37 NA NA R system.time(y -

Re: [R] Loops question

2003-06-09 Thread Uwe Ligges
Ramzi Feghali wrote: Hello Mr Ripley, Whom is this mail adressed to? The mailing list R-help or Professor Ripley? i was waiting you to ask and if you don't mind if there is a fast way in R to do these loops made with R and that takes a week because my matrix is with thousand of rows. I got

[R] questions about nls

2003-06-09 Thread Mei-Chu Lo
Dear R users, I am new in R and I want to use the nls package to analyze some experimental data. The data is in the attached file data. It is the response Sav measured at different C0. Basically, the C0 is a function of C1, K2, and r, and the Sav is a function of C0, C1, K2, and r. The math

Re: [R] Re: [BioC] installing XML in linux

2003-06-09 Thread Robert Burrows
On 9 Jun 2003, Douglas Bates wrote: You will need to install the Debian package libxml-dev before you can install the R XML package. and note that the package is really looking for 'libxml/parser.h'. On my machine, for example, parser.h is in /usr/include/libxml2/libxml/, so I have

Re: [R] Re: [BioC] installing XML in linux

2003-06-09 Thread Dirk Eddelbuettel
On Mon, Jun 09, 2003 at 06:03:55AM -0700, Mahbub Latif wrote: Thanks a lot Prof Bates. One more thing... What Debian packages should I install to install R packages Rgraphviz and rhdf5? For any given 'foo' I usually start by $ apt-cache search foo # may return lots $ apt-cache

Re: [R] Nested anovas

2003-06-09 Thread Spencer Graves
Did you try http://www.r-project.org/; - Search - R Site Search? I entered variants of nest and formula for nested model and got many hits, some of which mentioned |. I have not done that for a while, but I'm confident that some variant of this will work. hth. spencer graves Suzanne E.

Re: [R] questions about nls

2003-06-09 Thread Spencer Graves
There is too much here for me to parse it right now. Did you walk through the code line by line looking at the output anc checking what it did at each step? If you don't get a satisfactory reply from someone else and you can't figure it out from a line-by-line analysis of your code,

Re: [R] Questions for package ts prediction

2003-06-09 Thread zhu wang
On Mon, 2003-06-09 at 03:56, Prof Brian Ripley wrote: You have a scoping problem: the predict method needs to find the data: please supply an explicit newdata argument. Your first example works because `y' happens to be globally visible and be the right object. Thanks. That makes sense. On

Re: [R] Re: [BioC] installing XML in linux

2003-06-09 Thread Duncan Temple Lang
Robert Burrows wrote: On 9 Jun 2003, Douglas Bates wrote: You will need to install the Debian package libxml-dev before you can install the R XML package. and note that the package is really looking for 'libxml/parser.h'. On my machine, for example, parser.h is in

RE: [R] Introductory Resources

2003-06-09 Thread Paul Gilbert
[EMAIL PROTECTED] wrote ... 1) I want a test suite for R. I noted in the messages (Date: Mon Feb 24 2003 - 22:18:03 EST) that Prof Ripley wrote Well, R itself has lots of tests in its test suite (see directory tests in the sources) packages... but I was too stupid to find them. Q1: Can

[R] questions abtou nls

2003-06-09 Thread Mei-Chu Lo
The attached file equation in my previous e-mail does not go through (It was created by Microsoft word). I re-type the equations in Notepad and attach it now. Mei-Chu Lo C0 = C1 + K2*C1^2+ [Sum(i=3 to 25)(i*(K2/2)^(i-1) *C1^i]+ 26 * (K2/2)^25*r*C1^26 Sav =

[R] OT: Xemacs config help

2003-06-09 Thread Craig Bourne
Marc, In reply to your post of /Thu Feb 6 17:34:05 MET 2003/ re: Xemacs config help you wrote, in part: I'd like to ps pretty print R code to study after I've written it. I can do this with no problem from xemacs under Windows, but in Linux, I keep getting the same error:

[R] Re: [BioC] installing XML in linux

2003-06-09 Thread Mahbub Latif
apt-get install libhdf5-serial-dev To install libhdf5 what I am getting $ apt-get install libhdf5-serial-dev libhdf5-serial-dev: Depends: libhdf5-serial (= 1.4.5-2) but it is not going to be installed then I try... $ apt-get install libhdf5-serial libhdf5-serial: Depends: libc6 (=

Re: [R] Ordering long vectors

2003-06-09 Thread Göran Broström
On Mon, 9 Jun 2003, Prof Brian Ripley wrote: On Sun, 8 Jun 2003, Göran Broström wrote: On Sun, 8 Jun 2003, Thomas Lumley wrote: On Sat, 7 Jun 2003, [ISO-8859-1] Göran Broström wrote: I need to order a long vector of integers with rather few unique values. This is very

[R]parameters calculated by lda and qda

2003-06-09 Thread Power, Anne Marie
Hi, I am not sure if I remember correctly a mail last week to this messageboard where Prof Ripley said Fisher's discriminants are not used in lda within R and that Rao's are used instead, is this true? I looked in MASS (1996) but I couldn't find the reference to this in chapter 12 (multivariate

Re: [R]parameters calculated by lda and qda

2003-06-09 Thread Uwe Ligges
Power, Anne Marie wrote: Hi, I am not sure if I remember correctly a mail last week to this messageboard where Prof Ripley said Fisher's discriminants are not used in lda within R and that Rao's are used instead, is this true? I looked in MASS (1996) but I couldn't find the reference to this

Re: [R] converting by to a data.frame?

2003-06-09 Thread Spencer Graves
Hi, Don: Thanks for your suggestion to use do.call in my get.Index. I discovered that your version actually produces cosmetically different answers in R 1.6.3 and S-Plus 6.1 for Windows. Fortunately, in the context, this difference was unimportant. Since yours is faster, it is clearly

Re: [R] Basic question on applying a function to each row of a dataframe

2003-06-09 Thread Thomas Lumley
On Mon, 9 Jun 2003, Sundar Dorai-Raj wrote: Yes, but very slow for this example when the data.frame gets large Indeed. However, it works when the function is not already vectorised, and if the function is already vectorised it is unnecessary. -thomas

[R] estimate the number of clusters

2003-06-09 Thread ge yreyt
Dear All, I am using Silhouette to estimate the number of clusters in a microarray dataset. Initially, I used the iris data to test my piece of code as follows: library(cluster) data(iris) mydata-iris[,1:4] maxk-15# at most 15 clusters myindex-rep(0,maxk) # hold the si

[R] Appending elements to an array

2003-06-09 Thread Jonck van der Kogel
Hi all, I am having a bit of trouble with the array structure of R. What I want to do is dynamically add/remove elements to an array. For example: Let's say I have created an array: myArray - array(c(3,8), dim=c(1,2)) myArray [,1] [,2] [1,]38 And I now want to, for example, push

Re: [R] Appending elements to an array

2003-06-09 Thread Thomas Lumley
On Mon, 9 Jun 2003, Jonck van der Kogel wrote: Hi all, I am having a bit of trouble with the array structure of R. What I want to do is dynamically add/remove elements to an array. For example: Let's say I have created an array: myArray - array(c(3,8), dim=c(1,2)) myArray [,1]

[R] understanding eigen(): getting non-normalized eigenvectors

2003-06-09 Thread Christoph Lehmann
Hi, dear R pros I try to understand eigen(). I have seen, that eigen() gives the eigenvectors normalized to unit length. What shall I do to get the eigenvectors not normalized to unit length? E.g. take the example: A [,1] [,2] V1 0.7714286 -0.2571429 V2 -0.4224490

[R] ESRI shapefiles and EMME/2 packages

2003-06-09 Thread Benjamin . STABLER
I just uploaded two packages to CRAN. shapefiles_0.1.tar.gz - functions to read and write ESRI shapefiles (including dbfs) emme2_0.1.tar.gz - functions to read binary data from an EMME/2 databank data (EMME/2 is a transportation modeling program) Please let me know if you find any bugs or have

Re: [R] looking for Prof Bates' file

2003-06-09 Thread Viet Nguyen
Actually the file is there when I check today. The server was down yesterday. Thanks, viet Message: 31 Date: 09 Jun 2003 11:44:25 +0200 From: Peter Dalgaard BSA [EMAIL PROTECTED] Subject: Re: [R] looking for Prof Bates' file To: Viet Nguyen,,, [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]

Re: [R] Re: [BioC] installing XML in linux

2003-06-09 Thread Philippe Glaziou
Mahbub Latif [EMAIL PROTECTED] wrote: To install libhdf5 what I am getting $ apt-get install libhdf5-serial-dev libhdf5-serial-dev: Depends: libhdf5-serial (= 1.4.5-2) but it is not going to be installed then I try... $ apt-get install libhdf5-serial libhdf5-serial: Depends: libc6

[R] R hits the New Zealand Herald

2003-06-09 Thread Chris Wild
The following story about R appeared this morning in NZ's largest circulation newspaper, the New Zealand Herald. http://www.nzherald.co.nz/storydisplay.cfm?storyid=3506567 Chris Wild Department of Statistics The University of Auckland * BIRTHPLACE OF R !!