[R] (sans objet)

2004-12-14 Thread francoisromain
Hello, Just look at the examples in ?persp. There is a function called trans3d defined in it that will traduce your 3D coordinates to 2D, and so you will be able to draw lines with lines function. Romain. Corey Bradshaw a écrit : >I've created a perspective plot using 'persp' in the graphics p

[R] Problem with German special characters

2004-12-14 Thread Wolf, Michael
Dear list! When using the German special characters I didn't see all characters in the correct way. Let's take the command ff <- "äöüßÄÖÜ" # (for those ones who can't see this in the correct way \"a, \"ö, \"ü # \ss (?), \"A, \"O and \"U in LaTeX commands 'ff' will show the

[R] RE: adding perspectives to existing persp plots

2004-12-14 Thread Corey Bradshaw
Thanks, Romain. I've certainly used that to draw lines and points in the plots produced by 'persp'; however, my problem is that I need to incorporate an entirely new z function (not just a plane) onto the same plot (i.e., using the same x and y values). Corey -Original Message- From: [

[R] How to generate random number from grouped data?

2004-12-14 Thread ximing wu
Hi there, I need help on the following problem. Any suggestions will be much appreciated. Let x be an i.i.d. random sample of a continuous variable. For some fixed numbers a1 1) the frequency of x falls in each interval (a1, a2], (a2, a3], (a3, a4],... 2) the conditional mean of x within each in

[R] how to fit a weighted logistic regression?

2004-12-14 Thread Kerry Bush
I tried lrm in library(Design) but there is always some error message. Is this function really doing the weighted logistic regression as maximizing the following likelihood: \sum w_i*(y_i*\beta*x_i-log(1+exp(\beta*x_i))) Does anybody know a better way to fit this kind of model in R? FYI: one exa

Re: [R] classification for huge datasets: SVM yields memory troubles

2004-12-14 Thread John Maindonald
While it is true that the large number of variables relative to the number of observations restricts what can be inferred, the situation is not as hopeless as Bert seems to suggest. If it were, attempts at the analysis of expression array data would be a waste to time. Methods developed to that ge

[R] adding perspectives to existing persp plots

2004-12-14 Thread Corey Bradshaw
I've created a perspective plot using 'persp' in the graphics package. I'd like to add a second plane of z values to the existing plot, but I cannot seem to do this using 'persp'. Is there an analogue to 'lines' or 'points' for perspectives? Corey. [EMAIL PROTECTED] __

RE: [R] Re: [S] using Hmisc and Design library

2004-12-14 Thread array chip
sorry, I had a typo there, it's datadist(b) for the analysis of data frame "b". --- Robert Balshaw <[EMAIL PROTECTED]> wrote: > Not sure if this will help, but did you mean to use > datadist(a) for > the analysis of B? > > Rob > > > -Original Message- > > From: [EMAIL PROTECTED] > > [ma

RE: [R] Re : Save result in a For Loop

2004-12-14 Thread Liaw, Andy
Is there anything wrong with vectorized calculation? E.g., dd <- (M-10):M r <- 0.5 * (1 - exp(-2 * (32 - dd) / 100)) round(r, 4) Andy > From: bogdan romocea > > Not sure if it's the best way, but you could do it this way: > all.results <- vector(mode="numeric") > for (i in 1:100) > { >

[R] Re: [S] using Hmisc and Design library

2004-12-14 Thread array chip
actually data frame "b" has 177 rows, the script ran ok on the first 166 rows as a subset, but started to break down if subset of the first 177 rows were used as the dataset, or the first 166 rows plus 168th row, the data in those rows are: time status scores 165 172 0 -123.3 166

[R] using Hmisc and Design library

2004-12-14 Thread array chip
Hi, I encountered a weird problem when using the Design and Hmisc problem. I have 2 data frame called "a" and "b", both have 3 columns: "time", "status" and "scores", a sample of the data frame is like: data frame "a": time status scores 1 21 1 99.61 2 38 0 101.11 3 51 0 1

Re: [R] make check-all failed on SLES8 for x86_64

2004-12-14 Thread Peter Dalgaard
"Liaw, Andy" <[EMAIL PROTECTED]> writes: > Hi all, > > I've only now noticed that on our Opteron boxes running Suse Enterprise > Server 8 that R-2.0.1 did not pass make chek-all. It bombed in > tests/lapack.R at: > > > eigenok <- function(A, E, Eps = 1000 * .Machine$double.eps) { > V <- E$v

RE: [R] make check-all failed on SLES8 for x86_64

2004-12-14 Thread Liaw, Andy
Thanks for reminding me of that thread, Roger. I've forgotten all about it... Strangely, several people reported no problem with optimized BLAS, but I tried linking against the latest version (0.96, threaded), and got the same failure. I will try to see if I can upgrade GCC. Best, Andy > From:

Re: [R] switching to Linux, suggestions?

2004-12-14 Thread Ulises M. Alvarez
Again, I have to tell... Take a look at Ubuntu http://www.ubuntulinux.org/ When I get tired of MAC OSX, I installed the ppc version of Ubuntu on my IBook. It's great and it's based on Debian. On Mon, 2004-12-13 at 12:35 -0500, doktora v wrote: > I'm using SUSE with success on intel laptop and

[R] Multivariate multipl regression

2004-12-14 Thread Julianno Sambatti
I am trying to find Multivariate Multiple Regression documentation for R. Could somebody please indicate me some, if available at all. Thanks [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/

Re: [R] drawing a rectangle through multiple plots

2004-12-14 Thread Paul Murrell
Hi Dr Carbon wrote: How do I draw a rectangle across multiple plots on a device? E.g., def.par <- par(no.readonly = TRUE) par(mfrow = c(3, 1)) plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") rect(2

Re: [R] Advice on parsing formulae

2004-12-14 Thread Chuck Berry
Claus Dethlefsen math.aau.dk> writes: > > Dear list > > I would like to be able to group terms in a formula using a function that I > will call tvar(), eg. the formula > > Y ~ 1 + tvar(x:A) + tvar(z) + u + tvar(B) + tvar(poly(v,3)) > > where x,u and v are numeric and A and B are fac

[R] r-mathlib and ruby-rmathlib

2004-12-14 Thread Damien Joly
Hi all, I am trying to set up r-mathlib so I can access R functions from Ruby using ruby-rmathlib, and for the life of me I can't find an rpm or source code for r-mathlib (I can find debian packages ...). I'm using Red Hat Enterprise Linux WS (V 3) (EM_64 bit processor) and R version 1.9.1. Than

RE: [R] Re : Save result in a For Loop

2004-12-14 Thread bogdan romocea
Not sure if it's the best way, but you could do it this way: all.results <- vector(mode="numeric") for (i in 1:100) { ... this.run <- ... all.results <- c(all.results,this.run) } At this point all.results contains the values of this.run from the whole loop. I

RE: [R] Multivariate multipl regression

2004-12-14 Thread Berton Gunter
?aov or ?manova -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of >

[R] looking for Chebyshev I low pass filter

2004-12-14 Thread Christian Jost
I am looking for a simple implementation of a Chebyshev type I low-pass filter in R. Searching through the R web site I only found similar requests but never an answer pointing to a package providing such standard filters (Chebyshev, Butterworth). Any idea where I might find this? Thanks, Chri

Re: [R] switching to Linux, suggestions?

2004-12-14 Thread Ulises M. Alvarez
A little bit late, but I have to tell... Take a look at Ubuntu http://www.ubuntulinux.org Is both comfortable to install and maintain; plus easy to expand. __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read t

[R] Re : Save result in a For Loop

2004-12-14 Thread ssim
Hiya, I have been struggling to save the result from the FOR loop. What is the best way to do it, as I need the result to merge with another dataset for further analysis ? for (dd in ((M-10):M)){ + dist<-(32-dd) + r<-1/2*(1-exp(-2*dist/100)) + map<-c(dd,round(r,4)) + print(map) + next + } Thanks

[R] drawing a rectangle through multiple plots

2004-12-14 Thread Dr Carbon
How do I draw a rectangle across multiple plots on a device? E.g., def.par <- par(no.readonly = TRUE) par(mfrow = c(3, 1)) plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") rect(2, -4, 3, 4) par(de

RE: [R] linear regression: evaluating the result Q

2004-12-14 Thread Liaw, Andy
It looks just like the classical F-test for lack-of-fit, using estimate of `pure errors' from replicates, doesn't it? This should be in most applied regression books. The power (i.e., probability of finding lack-of-fit when it exists) of such tests will depend on the data. Andy > From: RenE J.V

Re: [R] make check-all failed on SLES8 for x86_64

2004-12-14 Thread Roger D. Peng
Martin Maechler brought this up a while back (and added the regression test). I believe it was a compiler problem and upgrading to gcc 3.4.1 fixed it. See the thread starting here: https://stat.ethz.ch/pipermail/r-devel/2004-July/030260.html -roger Liaw, Andy wrote: Hi all, I've only now notice

[R] make check-all failed on SLES8 for x86_64

2004-12-14 Thread Liaw, Andy
Hi all, I've only now noticed that on our Opteron boxes running Suse Enterprise Server 8 that R-2.0.1 did not pass make chek-all. It bombed in tests/lapack.R at: > eigenok <- function(A, E, Eps = 1000 * .Machine$double.eps) { V <- E$vect lam <- E$values stopifnot(abs(A %*% V - V %*%

RE: [R] plot with dates

2004-12-14 Thread Gabor Grothendieck
Halldor Björnsson vedur.is> writes: : : Hi, : I am trying to understand the behaviour of the plot function. : If I have : : novdate <- as.Date("2001/11/1") + (0:29) : y <- 1:30 : b <- data.frame(novdate,y) : : then plot(b$novdate,b$y) will produce a plot where the x-ticmarks are : giv

Re: [R] increase thr range in R

2004-12-14 Thread Spencer Graves
Sebastian: I routinely deal with situations like that in one of two ways: (1) Can you work with log(besselI)? If yes, that should solve the problem. (2) What do you do with the numbers returned from besselI? I assume they are later used to compute numbers in a more sensible

Re: [R] plot with dates

2004-12-14 Thread Brian D Ripley
On Tue, 14 Dec 2004, [ISO-8859-1] Halldor Björnsson wrote: > > Hi, > I am trying to understand the behaviour of the plot function. > If I have > > novdate <- as.Date("2001/11/1") + (0:29) > y <- 1:30 > b <- data.frame(novdate,y) > > then plot(b$novdate,b$y) will produce a plot where the x-ti

[R] plot with dates

2004-12-14 Thread Halldor Björnsson
Hi, I am trying to understand the behaviour of the plot function. If I have novdate <- as.Date("2001/11/1") + (0:29) y <- 1:30 b <- data.frame(novdate,y) then plot(b$novdate,b$y) will produce a plot where the x-ticmarks are given as dates (Nov 04, Nov 09 etc), but plot(b) will produce a plot wh

Re: [R] amd 64 ??

2004-12-14 Thread Peter Dalgaard
Hu Chen <[EMAIL PROTECTED]> writes: > Hi, I got a amd 64 + debian/pure64 system. > R is installed by apt-get so it's no doubt that R is for 64bit. > My question is, for those packages, for example, ipred, it's difficult > to find in which official debian packages they are. How could I > install th

RE: [R] sort() leaves row names unaffected

2004-12-14 Thread Liaw, Andy
I don't see how this is the `same' question at all. The object Martin has doesn't look like a data frame (can you tell why?), so I believe is unrelated to what you asked before. Andy ps: Why is this copied to [EMAIL PROTECTED] > From: bogdan romocea > > I asked the same question a few weeks a

RE: [R] sort() leaves row names unaffected

2004-12-14 Thread Liaw, Andy
The problem, I think, boils down to the following: > x <- matrix(c(3, 1, 2), ncol=3, dimnames=list(NULL, letters[1:3])) > x a b c [1,] 3 1 2 > sort(x) a b c [1,] 1 2 3 > y <- rbind(x, c(1,1,2)) > y a b c [1,] 3 1 2 [2,] 1 1 2 > sort(y) a b c [1,] 1 1 2 [2,] 1 2 3 I.e., I'm gue

Re: [R] Several questions in R

2004-12-14 Thread antonio rodríguez
El Martes, 14 de Diciembre de 2004 12:30, jing tang escribió: > Hi, > I have several small question in R, > 1) How to display all the variables in current workspace? ls() > 2) How to write a long command in two lines. Suppose one command line is > long to be put within one line. just push 'Enter

RE: [R] Moving standard deviation?

2004-12-14 Thread Martin Maechler
> "bogdan" == bogdan romocea <[EMAIL PROTECTED]> > on Mon, 13 Dec 2004 12:26:46 -0800 (PST) writes: bogdan> A simple for loop does the job. Why not write your own function? movsd <- function(series,lag) { movingsd <- vector(mode="numeric") for (i in lag:length(

Re: [R] Switching to Mac, suggestions? (was switching to linux)

2004-12-14 Thread Siegfried Gonzi
Jari Oksanen wrote: On 13 Dec 2004, at 19:53, doktora v wrote: I'm looking to switch to Mac platform. Anyone had any experience with that? I'm expecting on a power G4 laptop later this week hope R behaves... I have been a Linux user since 1999, and I got my first ever Mac (iBook G4 laptop) la

Re: [R] UPGMA

2004-12-14 Thread Martin Maechler
> "Thomas" == Thomas Isenbarger <[EMAIL PROTECTED]> > on Mon, 13 Dec 2004 14:27:56 -0600 writes: Thomas> R-help folks: Thomas> Thanks in the past for your help. I have another Thomas> question that I hope has a simple answer. I have Thomas> searched the R home pages

[R] Plotting Speed: R vs Octave

2004-12-14 Thread Suhail
Hi, Is this the mailing address of Chunlou Yung who used to work at Perform.com -Suhail __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html