[R] How to change x axes' range

2004-12-08 Thread Qin Liu
Hi, there: When plot ann predicted results I need to indicate numbers of inputs for each column. V1 V2 V3 V4 1 86.2700 49.9380 30.7630 0.1327 2 89.5127 55.9707 33.7683 0.1186 3 91.1833 58.4670 34.5610 0.1134 matplot(t, pch = 1:4, type = o, col =

Re: [R] How to change x axes' range

2004-12-08 Thread Yves Magliulo
matplot(.., axes=FALSE) then custozie by yourself ayour axes -axis(1,at=1:4,label=c(11 Vars,10 Vars,6Vars,4Vars)) ?axis and see label option for more details HTH, Yves MAGLIULO, PARIS Le mer 08/12/2004 à 11:36, Qin Liu a écrit : Hi, there: When plot ann predicted results I need to

RE: [R] How to change x axes' range

2004-12-08 Thread Liaw, Andy
Add xaxt=n in matplot(), then follow by axis(1, at=1:ncol(t), labels=c(A, B, ...)). HTH, Andy From: Qin Liu Hi, there: When plot ann predicted results I need to indicate numbers of inputs for each column. V1 V2 V3 V4 1 86.2700 49.9380 30.7630

Re: [R] How to change x axes' range

2004-12-08 Thread Henrik Andersson
Try suppresing the axes with plot(...,xaxt='n') and adding a custom axis with the command axis(1,labels=LETTERS[1:5],at=1:5) see ?axis for more info Cheers, Henrik Qin Liu wrote: Hi, there: When plot ann predicted results I need to indicate numbers of inputs for each column. V1 V2

[R] memory problem

2004-12-08 Thread Samuel Kemp
Hi, I am trying to run a very computationally expensive procedure in R-2.0.0. and the process always gets killed after approx 8 minutes. This procedure calls some of my own C++ code - in case it was this code causing a memory leak I unload and then reload the .so file every time, however I

[R] install bug with specific JPEG library by exporting CPPFLAGS variable

2004-12-08 Thread Yves Magliulo
Hi there, I think I have found a small problem in the /my/path/R-2.0.1/src/modules/X11/MakeFile generation. During the configure step, I have specified a specific JPEG library by exporting CPPFLAGS variable. All compilation works well for individual files in the src/modules/X11/ directory, but

[R] what about a mascot ?

2004-12-08 Thread internautem
My friend Veslot proposed me the Raven ! http://www.teteamodeler.com/allopass/images/corbeau.jpg As a matter of fact the intelligence of this bird is comparable to one of a monkey, although its brain is close to a reptile brain. R is quite the same : small, compact, but so clever. This is a

Re: [R] Importing vector graphics into R

2004-12-08 Thread Roger Bivand
On Tue, 7 Dec 2004, Hinrich Göhlmann wrote: Dear R users, I know of the possibility to import bitmaps via the nice pixmap library. But if you later on create a PDF it is somewhat disappointing to have such graphics bitmapped. Is there a trick (via maps?) to import a vector graphic

RE: [R] ess in Windows (newbie Q)

2004-12-08 Thread Rau, Roland
Reposting... -Original Message- From: Rau, Roland Sent: Tuesday, December 07, 2004 2:39 PM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [R] ess in Windows (newbie Q) Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Murray

RE: [R] How about a mascot for R?

2004-12-08 Thread Rau, Roland
reposting... -Original Message- From: Rau, Roland Sent: Tuesday, December 07, 2004 2:57 PM To: [EMAIL PROTECTED] Subject: RE: [R] How about a mascot for R? Dear all, browsing through the suggestions, I have the impression that the general direction is towards an animal from New

Re: [R] install bug with specific JPEG library by exporting CPPFLAGS variable

2004-12-08 Thread Brian D Ripley
On 8 Dec 2004, Yves Magliulo wrote: Hi there, I think I have found a small problem in the /my/path/R-2.0.1/src/modules/X11/MakeFile generation. During the configure step, I have specified a specific JPEG library by exporting CPPFLAGS variable. That only specifies a set of headers, not the

Re: [R] install bug with specific JPEG library by exporting CPPFLAGS variable

2004-12-08 Thread Brian D Ripley
On Wed, 8 Dec 2004, Brian D Ripley wrote: On 8 Dec 2004, Yves Magliulo wrote: Hi there, I think I have found a small problem in the /my/path/R-2.0.1/src/modules/X11/MakeFile generation. During the configure step, I have specified a specific JPEG library by exporting CPPFLAGS variable.

[R] GLMM

2004-12-08 Thread Alex
Hi all, Could someone please tell me if we have to group data in the units with a command such factor() or groupedData() before using the functions glmmPQL or GLMM. I didn't do that and at first my results seem OK, but I'd like to solve this doubt. Thanks in advance, Alex

[R] Strange error from R CMD INSTALL

2004-12-08 Thread Kjetil Brinchmann Halvorsen
I am trying to install a local package and get this unexpected error: -- Making package UMSA adding build stamp to DESCRIPTION installing R files installing data files installing man source files installing indices Error: couldn't find function na.omit Execution halted

Re: [R] Importing vector graphics into R

2004-12-08 Thread Roger Bivand
On Wed, 8 Dec 2004 [EMAIL PROTECTED] wrote: On 08-Dec-04 Roger Bivand wrote: On Tue, 7 Dec 2004, Hinrich Göhlmann wrote: Dear R users, I know of the possibility to import bitmaps via the nice pixmap library. But if you later on create a PDF it is somewhat disappointing to

Re: [R] Importing vector graphics into R

2004-12-08 Thread Jari Oksanen
On Wed, 2004-12-08 at 15:53, [EMAIL PROTECTED] wrote: On 08-Dec-04 Roger Bivand wrote: On Tue, 7 Dec 2004, Hinrich Göhlmann wrote: Dear R users, I know of the possibility to import bitmaps via the nice pixmap library. But if you later on create a PDF it is somewhat

Re: [R] How about a mascot for R?

2004-12-08 Thread Gabor Grothendieck
Given the likely reception that newbies get on r-help, those two classifications, i.e. a reptile which is cold-blooeded animal or an insect which is an annoying pest, are not altogether off the mark but to really capture the experience, Don Rickles should be the mascot. Spencer Graves

Re: [R] GLMM

2004-12-08 Thread Deepayan Sarkar
On Wednesday 08 December 2004 07:35, Alex wrote: Hi all, Could someone please tell me if we have to group data in the units with a command such factor() or groupedData() before using the functions glmmPQL or GLMM. I didn't do that and at first my results seem OK, but I'd like to solve this

[R] correlation matrix o

2004-12-08 Thread Liliana Forzani
Hi, I have data normal with mean 0, I was wondering how to get (using R) the best r such that the correlation matrix of my data has the form {r^(i-j)} where (i,j) indicate row and columm respectivly. Thanks. Liliana __ [EMAIL PROTECTED] mailing list

RE: [R] How about a mascot for R?

2004-12-08 Thread Jari Oksanen
On Wed, 2004-12-08 at 14:10, Rau, Roland wrote: Dear all, browsing through the suggestions, I have the impression that the general direction is towards an animal from New Zealand (I guess because of the roots of R). But since the R Foundation is now located in Vienna, Austria. What about a

Re: [R] what about a mascot ?

2004-12-08 Thread David Forrest
On Wed, 8 Dec 2004, internautem wrote: My friend Veslot proposed me the Raven ! http://www.teteamodeler.com/allopass/images/corbeau.jpg As a matter of fact the intelligence of this bird is comparable to one of a monkey, although its brain is close to a reptile brain. R is quite the same :

Re: [R] correlation matrix o

2004-12-08 Thread Dimitris Rizopoulos
Hi Liliana, how about the following: p - 10 # assume a 10-dim normal H - abs(outer(1:p, 1:p, -)) # I think you |i-j| library(mvtnorm) fn - function(rho, dat, H) -sum(log(dmvnorm(dat, sigma=rho^H))) optimize(fn, c(-1,1), dat=rmvnorm(1000, sigma=0.5^H), H=H) I hope it helps. Best, Dimitris

RE: [R] memory problem

2004-12-08 Thread Huntsinger, Reid
Some additional details would help. What platform? What does the C++ code do that might cause a memory leak? How are you calling it? I don't see why unloading the library would free memory even if it were allocated outside R's memory management. Unless you're using Windows you don't need to

Re: [R] Importing vector graphics into R

2004-12-08 Thread Ted Harding
On 08-Dec-04 Jari Oksanen wrote: On Wed, 2004-12-08 at 15:53, [EMAIL PROTECTED] wrote: On 08-Dec-04 Roger Bivand wrote: [...] No, nothing obvious. If you have an Xfig file - or convert to one from PS, How does one do that? None of the tools I can find on my (Linux) system seem to

RE: [R] How about a mascot for R?

2004-12-08 Thread Jari Oksanen
On Wed, 2004-12-08 at 17:01, Jari Oksanen wrote: I just wait for someone jumping off and saying this is off-topic and you should stop posting to this list -- and I'm afraid it could happen just at this point. Just to make it clear and to avoid misunderstanding: I was trying to reach a

RE: [R] How about a mascot for R?

2004-12-08 Thread Jari Oksanen
On Wed, 2004-12-08 at 17:01, Jari Oksanen wrote: I just wait for someone jumping off and saying this is off-topic and you should stop posting to this list -- and I'm afraid it could happen just at this point. Just to make it clear and to avoid misunderstanding: I was trying to reach a

[R] RODBC on linux

2004-12-08 Thread Omar Lakkis
I am using RODBC 1.1-2 with R 2.0.0 on a Debian box with a singel Pentium processor. My database is Informix 7.32. When I run a sql query I get the table header back but no data is selected. Please note this example: Table t1 has two columns, a and b. The table is populated with three rows.

Re: [R] Strange error from R CMD INSTALL

2004-12-08 Thread Kjetil Brinchmann Halvorsen
Kjetil Brinchmann Halvorsen wrote: I am trying to install a local package and get this unexpected error: -- Making package UMSA adding build stamp to DESCRIPTION installing R files installing data files installing man source files installing indices Error: couldn't find

Re: [R] correlation matrix o

2004-12-08 Thread Kjetil Brinchmann Halvorsen
Liliana Forzani wrote: Hi, I have data normal with mean 0, I was wondering how to get (using R) the best r such that the correlation matrix of my data has the form {r^(i-j)} where (i,j) indicate row and columm respectivly. Thanks. Liliana Thats the correlation matrix for an autoregressive(1)

Re: [R] RODBC on linux

2004-12-08 Thread Brian D Ripley
If you look in the RODBC help pages for odbcConnect you will see this mentioned with respect to Oracle and Sybase. Try the fix mentioned there. On Wed, 8 Dec 2004, Omar Lakkis wrote: I am using RODBC 1.1-2 with R 2.0.0 on a Debian box with a singel Pentium processor. My database is Informix

Re: [R] memory problem

2004-12-08 Thread Samuel Kemp
Thanks. Here is some more information. My platform is a Linux desktop. The C++ code implements a Gamma test which is calculated by constructing near neighbour lists (kd-tree) - the C++ code returns the deltas and gammas, the R code gets the noise estimate of the data by doing a linear

[R] Modulus Problem

2004-12-08 Thread McGehee, Robert
R users, I am having a problem with the modulus operator for large numbers as follows, a - 2 n - 561 ## n is the first Carmichael number, so by Fermat's Little Theorem the below should equal zero. (a^(n-1) - 1) %% n [1] 2.193172e+152 ## Seems that R and Fermat disagree ## Also,

RE: [R] memory problem

2004-12-08 Thread Huntsinger, Reid
OK, I would do the following: 1. Watch memory usage as the program runs, both within R and at the OS level for the R process. I suppose your code allocates memory (eg with new) within the R process but the R memory manager knows nothing about it. So you can tell where memory is leaking, if at

Re: [R] Modulus Problem

2004-12-08 Thread Thomas Lumley
On Wed, 8 Dec 2004, McGehee, Robert wrote: R users, I am having a problem with the modulus operator for large numbers as follows, a - 2 n - 561 ## n is the first Carmichael number, so by Fermat's Little Theorem the below should equal zero. (a^(n-1) - 1) %% n [1] 2.193172e+152 ## Seems that R and

Re: [R] Strange error from R CMD INSTALL

2004-12-08 Thread Gabor Grothendieck
Kjetil Brinchmann Halvorsen kjetil at acelerate.com writes: : : Kjetil Brinchmann Halvorsen wrote: : : I am trying to install a local package and get this unexpected : error: : : -- Making package UMSA : adding build stamp to DESCRIPTION : installing R files :

[R] randomize the order of rows in a matrix or table

2004-12-08 Thread Andreas
Hello, is there any function to randomize the order of rows in matrix. My dataset for suport vector mashines is in the order first the samples of class1 and then the samples for class2. For the training of the svm I need this dataset randomized in its order. regards Andreas

RE: [R] randomize the order of rows in a matrix or table

2004-12-08 Thread Liaw, Andy
mydata - mydata[sample(nrow(mydata)), ] Andy From: Andreas Hello, is there any function to randomize the order of rows in matrix. My dataset for suport vector mashines is in the order first the samples of class1 and then the samples for class2. For the training of the svm I need

RE: [R] randomize the order of rows in a matrix or table

2004-12-08 Thread Berton Gunter
?sample as in rand.rowx - x[sample(nrow(x)),] -- 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]

Re: [R] randomize the order of rows in a matrix or table

2004-12-08 Thread Sean Davis
There is probably a neater solution, but x - matrix(1:1000,nrow=500) y - runif(500) z - x[order(y),] On Dec 8, 2004, at 8:23 AM, Andreas wrote: Hello, is there any function to randomize the order of rows in matrix. My dataset for suport vector mashines is in the order first the samples of

[R] Clustering in R

2004-12-08 Thread Adrian Katschke
Is there a command to get cluster criterion for the cluster methods? SAS has its criterion, but I prefer to do it in R. If there is not a command is there code to produce criteria to choose the number of clusters? Adrian Katschke Statistics Grad Student University of Nebraska-Lincoln

Re: [R] Strange error from R CMD INSTALL

2004-12-08 Thread Ray Brownrigg
Date: Wed, 08 Dec 2004 09:33:22 -0400 From: Kjetil Brinchmann Halvorsen [EMAIL PROTECTED] I am trying to install a local package and get this unexpected error: -- Making package UMSA adding build stamp to DESCRIPTION installing R files installing data files

Re: [R] what about a mascot ?

2004-12-08 Thread Jim Lemon
internautem wrote: My friend Veslot proposed me the Raven ! http://www.teteamodeler.com/allopass/images/corbeau.jpg As a matter of fact the intelligence of this bird is comparable to one of a monkey, although its brain is close to a reptile brain. R is quite the same : small, compact, but so

Re: [R] Clustering in R

2004-12-08 Thread Stephane DRAY
see ?clustIndex in package cclust. At 13:49 08/12/2004, Adrian Katschke wrote: Is there a command to get cluster criterion for the cluster methods? SAS has its criterion, but I prefer to do it in R. If there is not a command is there code to produce criteria to choose the number of clusters?

[R] XML library

2004-12-08 Thread Adrian Katschke
I am doing some work using xml files, does anyone know how to install and use the XML package in R? I am receiving the files and would like to read them into and do my analysis in R. Adrian Katschke Statistics Grad Student University Nebraska-Lincoln [[alternative HTML version

[R] Rgui Application error help!

2004-12-08 Thread Yunming Mu
Dear R-Users I was trying to call a Fortran 77 subroutine from R 2.0.0 in Windows XP. I have Rtools, Perl and MinGW as described in http://www.murdoch-sutherland.com/Rtools/ with path sets. When I use C:\R\rw2000\binRcmd SHLIB test.f, a test.dll is created without error and located in that

[R] Surface graph.

2004-12-08 Thread Bang
What package/code could I use to create a 3-d surface graph of the predicted values over two of the explanatory variables' coefficients? Jim James Bang Department of Economics University of Illinois Well I AM missing the back of my head.you COULD cut me a little slack! -Homer Simpson

Re: [R] Strange error from R CMD INSTALL

2004-12-08 Thread Brian D Ripley
On Thu, 9 Dec 2004, Ray Brownrigg wrote: Date: Wed, 08 Dec 2004 09:33:22 -0400 From: Kjetil Brinchmann Halvorsen [EMAIL PROTECTED] I am trying to install a local package and get this unexpected error: -- Making package UMSA adding build stamp to DESCRIPTION

[R] similarity matrix conversion to dissimilarity

2004-12-08 Thread Dr. Thomas Isenbarger
I have a matrix of similarity scores that I want to convert into a matrix of dissimilarity scores so that I can apply some clustering methods to the data. That is, high values in my matrix signify similarity and low values (zero being the lowest) signify no similarity. What functions/options

Re: [R] Surface graph.

2004-12-08 Thread Roger Bivand
On Wed, 8 Dec 2004, Bang wrote: What package/code could I use to create a 3-d surface graph of the predicted values over two of the explanatory variables' coefficients? I think you'll need the surface first, for example from interp() in the akima package, then visualise with persp() or

Re: [R] Is k equivalent to k:k ?

2004-12-08 Thread Marcus Davy
Bringing up an old topic on a small technicality. In the help documentation on seq. Value: The result is of 'mode' 'integer' if 'from' is (numerically equal to an) integer and 'by' is not specified. The arguement in seq specifying length also creates double which is not obvious in

RE: [R] similarity matrix conversion to dissimilarity

2004-12-08 Thread Doran, Harold
Dear Sir: I posed a similar question a few months back and received many responses. Check the searchable archives at R Cran for those helpful email. I did a search for 'similarity matrix' and many results were returned. Harold -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: [R] similarity matrix conversion to dissimilarity

2004-12-08 Thread Ted Harding
[replying to your personal address as well as the list; but I think you should subscribe to the list since this topic may well be pursued further] On 08-Dec-04 Dr. Thomas Isenbarger wrote: I have a matrix of similarity scores that I want to convert into a matrix of dissimilarity scores so

RE: [R] Surface graph.

2004-12-08 Thread Liaw, Andy
From: Roger Bivand On Wed, 8 Dec 2004, Bang wrote: What package/code could I use to create a 3-d surface graph of the predicted values over two of the explanatory variables' coefficients? I think you'll need the surface first, for example from interp() in the akima package, then

Re: [R] Clustering in R

2004-12-08 Thread Romain François
Hello, The fpc package is filled with criterion for cluster analysis. See the function clusters.stats in that package. Romain. Adrian Katschke a écrit : Is there a command to get cluster criterion for the cluster methods? SAS has its criterion, but I prefer to do it in R. If there is not a

[R] system() and file names with spaces

2004-12-08 Thread Richard A. O'Keefe
Consider the question we had recently: how do I count the lines in a file without reading it into R? The solution I suggested was as.numeric(system(paste(wc -l , filename), TRUE)) Unfortunately, it doesn't work, or at least, not all the time. If you already know all about that, and don't

[R] System is computationally singular?

2004-12-08 Thread Rui Wang
Hi all, I was using the Newton-Raphson method to estimate paremeters in the model developed by my supervisor. However, when I interatively computed theta(t+1)=theta(t) - solve(H)*s (where the Hessian matrix and score vector were explicitely derived), I got the error message: Error in

[R] Re: Polychoric correlations

2004-12-08 Thread David Duffy
This is a bit late, but: About two years ago there was a thread about this which suggested that at that time nobody had these coefficients ready to go. (a) has anyone in the meanwhile programmed them? http://www.qimr.edu.au/davidD/R/polyr.R (d) I appreciate this last item is not strictly an

[R] Solaris installation problem resolved

2004-12-08 Thread Richard A. O'Keefe
Installing the e1071 package seemed to go fine, but when I tried to library(e1071) it didn't work. library(e1071) Loading required package: class Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library /users/local/lib/R/library/e1071/libs/e1 ld.so.1:

[R] Data Mining Conference: Solving Real World Challenges, New York, March 2005

2004-12-08 Thread Lisa Solomon
Apologies for cross posting - Salford Systems Data Mining 2005 New York, March 28-30, 2005 Focusing on the Contributions of Data Mining to Solving Real World Challenges

[R] Re: Tetrachoric and polychoric correlations, Polycor package

2004-12-08 Thread David Duffy
A bit late, but you might like to look at http://www.qimr.edu.au/davidD/polyr.R Regarding the original posters queries: You can analyse polychoric correlations as if they were Pearson correlations using standard software (eg sem), and this usually doesn't do too badly, or go to AWLS (Browne) in

Re: [R] Random Walk plus noise Model

2004-12-08 Thread antonio rodríguez
take a look at this place: http://zoonek2.free.fr/UNIX/48_R/all.html antonio Hi, I need help about the example that it appears in the book Time series the Brokwell and Davis, specificaly the random walk plus noise in the chapter 8. I need simulate t simulate something similar. thanks

Re: [R] Importing vector graphics into R

2004-12-08 Thread Hinrich Göhlmann
Thanks for your suggestions! Even though they are less than encouraging, I quickly want to give you the rational why I have asked this. Actually I was inspired by Paul Murrell's useR presentation - have a look at the very last slide of his presentation which you can find at