[R] Fax numbers

2003-02-13 Thread Søren Højsgaard
Hi ! I am trying to register. How to interpret the fax numer? Is it +43 1 58801 or +43 1 10798 I get a voice saying that these numbers do not exist? Best Søren Højsgaard -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sendt: 25. november 2002 19:29 Til: [EMAIL

[R] ESRI shape file import and time-space models

2003-02-13 Thread Ekkehardt . Altpeter
Dear R user, I am running R under Windows 2000. I am looking for a routine for importing - shape files (ESRI) into R - dbase files (FOXPRO) into R and I am looking for time-space models for description and prediction of Bernoulli-, Binomial- and Poissonvaraibles. Thank's a

[R] ROC

2003-02-13 Thread dechao wang
Hi, can you advise me is there any ROC(Receiver Operating Characteristic)analysis program in R? Thanks, Dechao = Dechao Wang Tel: (44) 01223 719718 Mob: (44) 07729 411134 __ Everything you'll ever need on one web page from News and Sport to

RE: [R] Various Errors using Survey Package

2003-02-13 Thread Thompson, Trevor
Dr. Lumley, Thanks for your response. I want to point out that I did try using the nest=TRUE option earlier and got the same error with svydesign. I checked and I was using version 0.9-1. I have updated this to version 1.0 and I am no longer getting an error. Your other suggestions work too

Re: [R] ESRI shape file import and time-space models

2003-02-13 Thread Stephane Dray
See the Rmap project for importing shapefiles: http://www.maths.lancs.ac.uk/Software/Rmap Dear R user, I am running R under Windows 2000. I am looking for a routine for importing -shape files (ESRI) into R -dbase files (FOXPRO) into R and I am looking for time-space

[R] search contrasts tutorial

2003-02-13 Thread Robert Espesser
I'm looking for a tutorial or notes on the use of contrasts factor in linear model in R, I've found some mails and infos about in various documents about R, but I've probably missed a good review on this subject. -- Robert Espesser Laboratoire Parole et Langage UMR 6057, CNRS 29 Av.

Re: [R] search contrasts tutorial

2003-02-13 Thread ripley
Chapter 6 of MASS contains Bill Venables' tutorial dating back to 1993 or so but still I believe unrivalled. On Thu, 13 Feb 2003, Robert Espesser wrote: I'm looking for a tutorial or notes on the use of contrasts factor in linear model in R, I've found some mails and infos about in

Re: [R] search contrasts tutorial

2003-02-13 Thread Tito de Morais Luis
Hi, Did you look at : http://pbil.univ-lyon1.fr/R/enseignement.html There is a huge list of statistical courses based on R. You may find what you look for. It's in French but this should not be a problem for you ;-) HTH L. Tito Le jeu 13/02/2003 à 17:30, Robert Espesser a écrit : I'm

Re: [R] models for square tables

2003-02-13 Thread John Hendrickx
Labels can be helpful but can also cause messy output. In some of the other functions, I added an option to suppress printing labels, especially for symmetrical interactions. A problem (in my view) with your approach is that it sorts the categories according to the level names. I'd prefer the

[R] Cook's distance in lm (1.6.1 vs 1.6.2)

2003-02-13 Thread Ernesto Jardim
Hi I found differences between the Cook's distance plot produced by R-1.6.1 and R-1.6.2, when analysing a linear model (lm). This was allready identified ? Regards EJ __ [EMAIL PROTECTED] mailing list

[R] (no subject)

2003-02-13 Thread Jonathan Williams
Dear R helpers, I have a curious problem, which is that a program I have written in R crashes R, unpredictably. When I say that the program crashes R, I mean that it causes R to terminate, completely. But, the operating system (Windows) continues OK. The program loops around a randomForest

Re: [R] (no subject)

2003-02-13 Thread Thomas Lumley
On Thu, 13 Feb 2003, Jonathan Williams wrote: The program will work away happily for hours and will sometimes perform as many as 100 cycles around the above loop. It gives quite nice results. But, quite frequently, and unpredictably, it fails and R just stops. As I say, the operating system

[R] OO programming in R

2003-02-13 Thread Kris Nackaerts
Dear, I'm looking for some examples on OO programming in R. I have the programming manual with explanation on UseMethod and NextMethod but I miss some practical examples to get me going (I hope). I searched the web but could not find a good independent tutorial on this. Any suggestions are

RE: [R] (no subject)

2003-02-13 Thread Liaw, Andy
Jonathan, Is there any possibility for you to send me the data, and/or the code? I and others have seen similar problems before, but not reproducible on the current version, at least on the NT and Linux boxes that I have access to. As Thomas said, it's difficult to nail these kinds of problems.

Re: [R] sorting in lmList object

2003-02-13 Thread Douglas Bates
[EMAIL PROTECTED] writes: Hi all, Forgive me if this is an obvious one I want to make a plot of confidence intervals from an lmList object with a collection of simple linear models (lm(y~x)) using: plot(intervals(mylmList)) and sort the plot by increasing mean values for the

[R] (no subject)

2003-02-13 Thread Duncan Goliche
I have two routine tasks that I am wasting time over trying to solve. Can anyone help? I want to display the results of some geostatistical analysis quickly in R before exporting back to GIS . Does anyone have a trick for overlaying a polygon on an image of a krigging surface (prmat in spatial)

Re: [R] OO programming in R

2003-02-13 Thread Wolski
Hi Kris! I am also looking for practical examples. I know that the bio conductor is written using the oo method package. But I am still looking for some simple (without database interfaces and special file formats or sophisticated statistics) implementations using oo in R. /Eryk ***

RE: [R] OO programming in R

2003-02-13 Thread Falcon, Seth
I'm looking for some examples on OO programming in R. Me too! Please share anything you find with the list. + seth __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: [R] OO programming in R

2003-02-13 Thread Roger Peng
You may want to look at the book Programming with Data by John Chambers, which describes the new-style classes. It has yet to fail me. Also the Bioconductor packages (http://www.bioconductor.org) use the new-style class system and provide a good source of code examples (even if you're not

Re: [R] OO programming in R

2003-02-13 Thread Roger Peng
Smaller (and simpler?) examples include the `pixmap' package and my `gpclib' package. They both use the `methods' package. -roger ___ UCLA Department of Statistics [EMAIL PROTECTED] http://www.stat.ucla.edu/~rpeng On Thu, 13 Feb 2003, Wolski wrote: Hi Kris! I am

Re: [R] OO programming in R

2003-02-13 Thread Robert Gentleman
I have some notes and examples using S4 (for want of a better name) at http://biosun1.harvard.edu/courses/individual/bio271/ lectures 12 and 13 -- Robert On Thu, Feb 13, 2003 at 08:34:35AM -0800, Roger Peng wrote: You may want to look at the book Programming with Data by John Chambers, which

[R] How to solve A'A=S for A ?

2003-02-13 Thread Ralf Engelhorn
Dear R helpers, is there a function or way within R to solve A'A=S for A, where all matrices have p x p order and S is a variance-covariance matrix? Thank you, Ralf Engelhorn __ [EMAIL PROTECTED] mailing list

Re: [R] How to solve A'A=S for A ?

2003-02-13 Thread Jan de Leeuw
Use eigen() or any of the principal component analysis functions. If K has eigenvectors and D has eigenvalues, then A'=KD^{1/2} is a orthogonal solution, and A=A'=KD^{1/2}K' is a symmetric solution. On Thursday, Feb 13, 2003, at 10:46 US/Pacific, Ralf Engelhorn wrote: Dear R helpers, is there

RE: [R] search contrasts tutorial

2003-02-13 Thread Warnes, Gregory R
You might also find the help pages for 'fit.contrasts', 'estimable', and 'glh.test' functions in the gregmisc library useful. -Greg -Original Message- From: Tito de Morais Luis [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 8:52 AM To: [EMAIL PROTECTED] Cc: [EMAIL

Re: [R] How to solve A'A=S for A ?

2003-02-13 Thread ripley
That will work if S is unambiguously positive definite, but covariance matrices need not be, and then chol (without pivoting) will fail. Pivoting can be used: see ?chol. A more expensive but safer solution is to use eigen: see the code for mvrnorm. On Thu, 13 Feb 2003, Sundar Dorai-Raj wrote:

Re: [R] fixed and random effects in lme

2003-02-13 Thread Douglas Bates
Federico Calboli [EMAIL PROTECTED] writes: Hi All, I would like to ask a question on fixed and random effecti in lme. I am fiddlying around Mick Crawley dataset rats : http://www.bio.ic.ac.uk/research/mjcraw/statcomp/data/ The advantage is that most work is already done in Crawley's

[R] position of an element in a vector

2003-02-13 Thread Jason Bond
Hello. Sorry for the elementary post. I've looked through the documentation, but can't seem to find a function which allows one to extract the position of an element within a list...for example the position of the element 4 in the vector c(1,2,4,3,6) is 3. Thanks much for any help. Jason

Re: [R] position of an element in a vector

2003-02-13 Thread Spencer Graves
How about: x - c(1, 2, 4, 3, 6) (1:length(x))[x==4] [1] 3 Spencer Graves Jason Bond wrote: Hello. Sorry for the elementary post. I've looked through the documentation, but can't seem to find a function which allows one to extract the position of an element within a list...for example the

[R] pie charts?

2003-02-13 Thread Joshua Gramlich
I don't suppose it's possible to create a pie chart in R? I've got 1500 some odd elements in a frame that are valued at either -1, 0 or 1 and I'd like to find a reasonable way to represent the distribution graphically...any ideas? Joshua Gramlich Piocon Technologies Chicago, IL

[R] generic handling of NA and NaN and NULL

2003-02-13 Thread Robin Hankin
Hello everybody I have a generic problem which the following toy function illustrates: f - function(n) { if(abs(n) pi) { return(TRUE) } else { return(FALSE) } } I want it to return TRUE if abs(n)pi and FALSE otherwise. f() is fine as far as it goes, but does

RE: [R] pie charts?

2003-02-13 Thread Joshua Gramlich
I did find ?pie and saw the explanation as to why not to use pie charts. I may end up using it anyway, because the comparison is something like 94%,5%,1%, so the difficulty of the human eye to read area as opposed to length(as in a bar chart) doesn't make much difference in this case. Thanks for

[R] example methods for whatis

2003-02-13 Thread White . Denis
Having difficulty following the examples in John Chambers paper Classes and Methods in the S Language, dated 9 August 2001. See error below in whatis (matrix (0,2,3)). Thanks for help. library (methods) whatis - function (object) paste (an object of class, + data.class (object))

Re: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Spencer Graves
How about: f3 - function(n){ + n.pi - (abs(n)pi) + n.pi[is.na(n.pi)] - F + n.pi + } f3(c(1, 5, NA)) [1] TRUE FALSE FALSE Spencer Graves Robin Hankin wrote: Hello everybody I have a generic problem which the following toy function illustrates: f - function(n) { if(abs(n) pi) {

RE: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Liaw, Andy
Try: f - function(n) { if(is.null(n) || is.na(n) || abs(n) pi) { return(FALSE) } else { return(TRUE) } } Note that the order of the conditions inside if() matters: is.na(n) only gets evaluated if is.null(n) is FALSE, and so on. Andy -Original Message- From: Robin

Re: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Robin Hankin
Hi Spencer thanks for this How about: f3 - function(n){ + n.pi - (abs(n)pi) + n.pi[is.na(n.pi)] - F + n.pi + } nope! Sometimes I need things like R x - 1:10 R if(f3(x[x11])==TRUE){print(asfd)} Error in if (f3(x[x 11]) == TRUE) { : missing value where logical needed

Re: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Robin Hankin
Hello Andy thanks for this; but R x - 1:10 R f function(n) { if(is.null(n) || is.na(n) || abs(n) pi) { return(FALSE) } else { return(TRUE) } } R x - 1:10 R f(x[x11]) Error in if (is.null(n) || is.na(n) || abs(n) pi) { : missing value where logical needed

RE: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Liaw, Andy
From: Spencer Graves [mailto:[EMAIL PROTECTED]] How about: f3 - function(n){ + n.pi - (abs(n)pi) + n.pi[is.na(n.pi)] - F + n.pi + } f3(c(1, 5, NA)) [1] TRUE FALSE FALSE A couple of problems: a) It chokes if argument is NULL. b) Use of F instead of FALSE will not

RE: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Liaw, Andy
The version I gave is obviously not vectorized (since your original version seem to indicate that the argument won't have length 1, otherwise the if() won't really make sense). Replacing is.null(n) with length(n)!=1 (or length(n)==0) should do the trick (I hope!). Andy -Original

Re: [R] generic handling of NA and NaN and NULL

2003-02-13 Thread Spencer Graves
How about the following modification: f3 - function(n){ + if(length(n)1)return(FALSE) + n.pi - (abs(n)pi) + n.pi[is.na(n.pi)] - FALSE + n.pi + } x - 1:10 f3(x[x11]) [1] FALSE Spencer Liaw, Andy wrote: The version I gave is obviously not vectorized (since your original version seem

[R] Levelplot problem

2003-02-13 Thread Christopher Adolph
I'm working with a levelplot in which the x's are unequally spaced: x = {.8,.85,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1} It seems this results in a gap in the plot in the vicinity of x = 8.75 to 8.85 or so. I assume this is because the rectangles are centered on the points in the dataset,

Re: [R] Levelplot problem (lattice)

2003-02-13 Thread Deepayan Sarkar
On Thursday 13 February 2003 06:08 pm, Christopher Adolph wrote: I'm working with a levelplot in which the x's are unequally spaced: x = {.8,.85,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1} It seems this results in a gap in the plot in the vicinity of x = 8.75 to 8.85 or so. I assume this is

[R] modeling interaction of continuous vars

2003-02-13 Thread Vadim Ogranovich
Dear R-Users, I wonder what methods are available for modeling interaction of continuous variables. Specifically I am interested in fitting a regression y ~ f(w) * x where y, x are vectors and f(w) is a smooth function of a continuous parameter w (so it is f() that needs to be estimated). I can

[R] data manipulation function descriptions

2003-02-13 Thread Jason Bond
Hello, I'm a recovering xlispstat user, and am trying to become a good R user. I've looked around on the CRAN doc website and have found quite a few sets of documentation with various level of data manipulation function descriptions (of what I've seen, most relatively low levels), and many

[R] masking polygons (formerly no subject)

2003-02-13 Thread White . Denis
I have two routine tasks that I am wasting time over trying to solve. Can anyone help? I want to display the results of some geostatistical analysis quickly in R before exporting back to GIS . Does anyone have a trick for overlaying a polygon on an image of a krigging surface (prmat in

Re: [R] data manipulation function descriptions

2003-02-13 Thread kjetil brinchmann halvorsen
On 13 Feb 2003 at 17:09, Jason Bond wrote: As lisp-stat user, I tried to compile a short dictionary within your answer below: Hello, I'm a recovering xlispstat user, and am trying to become a good R user. I've looked around on the CRAN doc website and have found quite a few sets of

Re: [R] ESRI shape file import and time-space models

2003-02-13 Thread david . whiting
On Thu, Feb 13, 2003 at 12:36:51PM +0100, [EMAIL PROTECTED] wrote: Dear R user, I am running R under Windows 2000. I am looking for a routine for importing -shape files (ESRI) into R -dbase files (FOXPRO) into R I assume that as you say dbase (Foxpro) you mean Foxpro

[R] Translating lm.object to SQL, C, etc function

2003-02-13 Thread j+rhelp
This is my first post to this list so I suppose a quick intro is in order. I've been using SPLUS 2000 and R1.6.2 for just a couple of days, and love S already. I'm reading MASS and also John Fox's book - both have been very useful. My background in stat software was mainly SPSS (which I've never

Re: [R] Translating lm.object to SQL, C, etc function

2003-02-13 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: This is my first post to this list so I suppose a quick intro is in order. I've been using SPLUS 2000 and R1.6.2 for just a couple of days, and love S already. I'm reading MASS and also John Fox's book - both have been very useful. My background in stat software was

Re: [R] data manipulation function descriptions

2003-02-13 Thread ripley
On Thu, 13 Feb 2003, kjetil brinchmann halvorsen wrote: On 13 Feb 2003 at 17:09, Jason Bond wrote: case switch [R-core : switch should be better announced. It is for

Re: [R] ESRI shape file import and time-space models

2003-02-13 Thread ripley
On Thu, 13 Feb 2003 [EMAIL PROTECTED] wrote: On Thu, Feb 13, 2003 at 12:36:51PM +0100, [EMAIL PROTECTED] wrote: I am running R under Windows 2000. I am looking for a routine for importing -shape files (ESRI) into R -dbase files (FOXPRO) into R I assume that