Re: [R] Error with 1.9.0 - winMenuAdd not usable in .Rprofile

2004-04-22 Thread Prof Brian Ripley
On Thu, 22 Apr 2004, Fan wrote: Brian, thanks for the hint, it works. The old 1.8 version works very well without the need of such manual loading, I guess, there'd be some internal changes in the order of libraries loading at the startup in the 1.9.0 version ? Yes, and that is right at

[R] RODBC installation in debian

2004-04-22 Thread Mahbub Latif
Hello List, I am trying to install RODBC package in a debian linux box but getting the following message. Can anyone help me to find what I am doing wrong here: $ R CMD INSTALL RODBC_1.0-4.tar.gz ### * Installing *source* package 'RODBC' ... checking for gcc... gcc checking for C compiler

[R] Lyapunov exponent?

2004-04-22 Thread Philippe Grosjean
Hello, Does anybody know if there is somewhere in R a function to calculate the Lyapunov exponent in a time series? Thanks, Philippe Grosjean ...°})) ) ) ) ) ) ( ( ( ( ( Prof. Philippe Grosjean \ ___ ) \/ECO\ ( Numerical Ecology

Re: [R] RODBC installation in debian

2004-04-22 Thread Jason Turner
I am trying to install RODBC package in a debian linux box but getting the following message. Can anyone help me to find what I am doing wrong here: This sort of problem usually stems from issues covered in the README file in the RODBC tarball. Have you untarred it and read this file?

[R] histbackback for population pyramid

2004-04-22 Thread Camarda, Carlo Giovanni
Hi R-people, I hope someone could help me. I have to draw a population pyramid, but using histbackback (in Hmisc library) function I've got just histograms of density or frequency of my distribution. How can I get a population pyramid without playing on barplot function? I give a simple example

[R] lme correlation structure error

2004-04-22 Thread Wayne Jones
Hi there fellow R-users, I am trying to follow an example of modelling a serial correlation structure in the textbook Mixed Effects Model in S and Splus. However, I am getting some very odd results. Here is what I am trying to run: library(nlme) data(Ovary)

Re: [R] Lyapunov exponent?

2004-04-22 Thread Angel Lopez
Philippe, I think, it was discussed last month on the list: http://tolstoy.newcastle.edu.au/R/help/04/03/0318.html In summary: From: Stephen Ellner ([EMAIL PROTECTED]) Date: Sat 06 Mar 2004 - 01:57:09 EST The lyapunov exponent part of Funfits is semi-available, but only for Windows. Doug

Re: [R] SVM question

2004-04-22 Thread Frank Gerrit Zoellner
Hi! I have another SVM question. I run and train a C-Classification using the SVM, works fine. Now I want to receive the output (the classified examples): pred - fitted(model) where pred is then a list of the classification result of each input elememt i supposed. But if I compare the number

RE: [R] Question on CAR appendix on NLS

2004-04-22 Thread John Fox
Dear Alay, I'm leaving town this morning for several days, so I don't have time to check through your code, but I did rerun the examples from the appendix (see below), and all three approaches produce identical parameter correlations (using R 1.9.0 under Win XP). Perhaps you made an error in

[R] fill up a matrix

2004-04-22 Thread Luis Rideau Cruz
Hi all, I want to fill in this matrix vectors (by column) without overwriting the first elements in column 1995. Is there any other way than concatenate the first element with the vector and then assign this new vector to the column in matrix? matrix[,3]-c(1591,vector)

Re: [R] RODBC installation in debian

2004-04-22 Thread Jean Eid
I just did this yesterday. you do not have an ODBC driver ( as it says in the log). you need to (as root) use apt-get install unixodbc and apt-get install unixodbc-dev. The unixodbc package alone will not work, you need to install unixodbc-dev (development), Hope this helps. I have a question

Re: [R] fill up a matrix

2004-04-22 Thread Peter Dalgaard
Luis Rideau Cruz [EMAIL PROTECTED] writes: Hi all, I want to fill in this matrix vectors (by column) without overwriting the first elements in column 1995. Is there any other way than concatenate the first element with the vector and then assign this new vector to the column in

Re: [R] fill up a matrix

2004-04-22 Thread Jean Eid
you can do this, tmpmatrix - matrix(unlist((lapply(as.data.frame(x[, 3:ncol(x)]), function(t) return(rep(t[!is.na(t)], 9))) )), byrow=F, ncol=8) matrix - cbind(matrix[, 1:2], tmpmatrix) On Thu, 22 Apr 2004, Luis Rideau Cruz wrote: Hi all, I want to fill in this matrix vectors (by column)

Re: [R] fill up a matrix

2004-04-22 Thread Gabor Grothendieck
Try this: m - matrix(1:9, 3) m[-1,] - matrix(11:16,2) Luis Rideau Cruz Luisr at frs.fo writes: : : Hi all, : : I want to fill in this matrix vectors (by column) without overwriting the first elements in column 1995. : : Is there any other way than concatenate the first element with the

Re: [R] lme correlation structure error

2004-04-22 Thread Douglas Bates
Wayne Jones [EMAIL PROTECTED] writes: I am trying to follow an example of modelling a serial correlation structure in the textbook Mixed Effects Model in S and Splus. However, I am getting some very odd results. Here is what I am trying to run: library(nlme) data(Ovary)

Re: [R] calling R from java

2004-04-22 Thread [EMAIL PROTECTED]
I downloaded it and installed it with all the recommended options. I created the LD_LIBRARY_PATH environment variable but my java compiler (latest version) can't find packages like org.omegahat.R.java and cannot resolve symbol (class) like REvaluator, RForeignReference... any idea ? many thanks

RE: [R] calling R from java[Scanned]

2004-04-22 Thread SARRANT Bruno
look at http://www.omegahat.org/download/index.html for my part, i'm working on Window 2000 and got lots of problem in SJava building due to C code compilation... Cheers Bruno -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 avril 2004

[R] random effects structure in lme

2004-04-22 Thread Vito Muggeo
Dear all, Some days ago I posted the same message below, but unfortunately with no reply. So, apologizes for this my re-sending, but I hope there is now someone on-line that can help me In using the lme() function from the nlme package, I would like to specify a particular correlation

[R] New version of benchmark comparing R with other software

2004-04-22 Thread Philippe Grosjean
Hello, Thanks to Douglas Bates, there is now a new benchmark suite (version 2.3) which is compatible with R 1.9.0 and the recent Matrix library (0.8-1 or above). You find it at http://www.sciviews.org/other/benchmark.htm. It compares R 1.9.0 under Windows with: S-PLUS 6.5, Matlab 6.0, O-Matrix

[R] Urgent:again question about nmath/standalone

2004-04-22 Thread xt_wang
Hello, all, I have the same question as the last mail I sent. I have installed libRmath in my system. But I still can not link Rmath through -lRmath. The whole process is as follow.Is there anybody who is so kind to help me find out the problem? I will appreciate very much. [EMAIL PROTECTED]

[R] no subject

2004-04-22 Thread Sean Davis
Dear all, I want to compute pairwise correlations between all rows of two matrices where the pairs are formed by taking all rows from each matrix with a common factor. In other words, I want to take all pairwise correlations between rows after stratifying by a factor (the same factor) in each

[R] Trouble with HTML search engine

2004-04-22 Thread Damon Wischik
There have been a number of posts to this list by people having trouble with the HTML search engine. Often these troubles are caused by incorrect setups (user hasn't installed Java properly, or Java is disabled, or Javascript is disabled). Sometimes the trouble persists even when Java is

Re: [R] RODBC installation in debian

2004-04-22 Thread Dirk Eddelbuettel
On Thu, Apr 22, 2004 at 01:23:50AM -0700, Mahbub Latif wrote: Hello List, I am trying to install RODBC package in a debian linux box but getting the following message. Can anyone help me to find what I am doing wrong here: $ R CMD INSTALL RODBC_1.0-4.tar.gz Well, you could use

Re: [R] Urgent:again question about nmath/standalone

2004-04-22 Thread Dirk Eddelbuettel
On Thu, Apr 22, 2004 at 09:37:22AM -0400, [EMAIL PROTECTED] wrote: Hello, all, I have the same question as the last mail I sent. I have installed libRmath in I'd still recommend the same I sent you last time, e.g. in. http://tolstoy.newcastle.edu.au/R/help/04/04/0719.html Try with

Re: [R] Trouble with HTML search engine

2004-04-22 Thread Brian Beckage
I tried under Mac OS 10.3.3 using source(http://www.statslab.cam.ac.uk/~djw1005/Stats/Interests/search.R;) helpHTML() from within xemacs using Safari and the R search engine page comes up. I tried two searches on 'lm' and 'matrix' and it seemed to work fine. This is very nice as I have not

Re: [R] Trouble with HTML search engine

2004-04-22 Thread Prof Brian Ripley
On Thu, 22 Apr 2004, Damon Wischik wrote: There have been a number of posts to this list by people having trouble with the HTML search engine. Often these troubles are caused by incorrect setups (user hasn't installed Java properly, or Java is disabled, or Javascript is disabled). Sometimes

Re: [R] Urgent:again question about nmath/standalone

2004-04-22 Thread Prof Brian Ripley
WHY is this urgent? The error message is '/usr/bin/ld: cannot find -lRmath' so you have not put libRmath somewhere ld can find it. That is not an R question, and we can't help you solve it, especially as you have not told us your OS. It does look as if you may not have permission to read the

Evidence from Debian's package tracking (Was Re: [R] Size of R user base.)

2004-04-22 Thread Ajay Shah
I have watched the discussions about the size of the R user base with much interest. One more source of data that might help is the voluntary data capture in Debian. If you are a Debian user, you should volunteer information. It's very easy: as root, say: # apt-get install

[R] Improving on edit()?

2004-04-22 Thread Ajay Shah
I learned about edit() recently and it's nice. For those on the list who haven't found it yet, try: X = data.frame(100:0,200:100,300:200) Y=edit(X) It gives you a (low grade) GUI where you can look at the data frame, and make changes. I was curious about a few things: 1. tk has full

[R] Re: pausing a program

2004-04-22 Thread Jason . L . Higbee
R: I have a program that runs a For loop for days and I need to (if possible) pause the program. Any ideas on how to do that? If I use stop, how certain can I be that all the statements executed in the previous iteration of the for loop? Thanks, Jason Higbee Research Associate Federal

[R] POSIXct vs Dates

2004-04-22 Thread Frank E Harrell Jr
I noticed the addition of the Dates class for dates without times, in R 1.9. I am making extensive use of POSIXct at present and would like to know whether it is worth changing to Dates. What are a few of the trade-offs? Thanks, Frank --- Frank E Harrell Jr Professor and Chair

Re: [R] Re: pausing a program

2004-04-22 Thread Tamas Papp
On Thu, Apr 22, 2004 at 08:52:23AM -0500, [EMAIL PROTECTED] wrote: R: I have a program that runs a For loop for days and I need to (if possible) pause the program. Any ideas on how to do that? If I use stop, how certain can I be that all the statements executed in the previous

[R] Re: Evidence from Debian's package tracking

2004-04-22 Thread A.J. Rossini
Ajay Shah [EMAIL PROTECTED] writes: This shows that of the 4800 people who volunteered information, 1631 had installed gnuplot -- which suggests that perhaps one third of Debian installs are by numerate people. R-base was installed by roughly one-tenth of the sample. So that's one useful

Re: [R] Error with 1.9.0 - winMenuAdd not usable in .Rprofile

2004-04-22 Thread A.J. Rossini
Prof Brian Ripley [EMAIL PROTECTED] writes: On Thu, 22 Apr 2004, Fan wrote: Brian, thanks for the hint, it works. The old 1.8 version works very well without the need of such manual loading, I guess, there'd be some internal changes in the order of libraries loading at the startup in the

[R] Fatal Error: Invalid HOMEDRIVE

2004-04-22 Thread Vinyard Maj William C
All, I've encountered the same problem as others who have posted under the same subject. I've had R-1.8.1 installed and running since it was released. Yesterday morning when I tried to start Rgui.exe I got the subject error message. Since I live at the whim of the network administrators I can

Re: [R] Error with 1.9.0 - winMenuAdd not usable in .Rprofile

2004-04-22 Thread Prof Brian Ripley
On Thu, 22 Apr 2004, A.J. Rossini wrote: Prof Brian Ripley [EMAIL PROTECTED] writes: On Thu, 22 Apr 2004, Fan wrote: Brian, thanks for the hint, it works. The old 1.8 version works very well without the need of such manual loading, I guess, there'd be some internal changes in

Re: [R] HTML help pages

2004-04-22 Thread Prof Brian Ripley
Unfortunately your suggested change to SearchEngine.html is not valid JavaScript under Internet Explorer 6: at least APPLET appears to be recognised under all commonly used browsers. I found your Javascript search a lot slower under IE6 (and IE6 was a lot slower than FireFox). Not that I use IE6

Re: [R] POSIXct vs Dates

2004-04-22 Thread Prof Brian Ripley
On Thu, 22 Apr 2004, Frank E Harrell Jr wrote: I noticed the addition of the Dates class for dates without times, in R 1.9. I am making extensive use of POSIXct at present and would like to know whether it is worth changing to Dates. What are a few of the trade-offs? You lose the ability

[R] as.Date

2004-04-22 Thread Lyden, Scott
Hi. I'm sure this is a complete green-horn question. I apologize. I'm trying to use as.Date *exactly* as shown on p. 194 of the manual (code fragment and error message pasted below). Is there some kind of include or import statement that I need to issue? Thank you very much for saving what

Re: [R] as.Date

2004-04-22 Thread Prof Brian Ripley
You do need R 1.9.0 or later. On the other hand, `the manual' (which manual) should only refer to as.Date in 1.9.0 or later. If you are using R 1.9.0, something is wrong (as that code is run as part of the installation checks). (`or later' here means one of the r-patched or r-devel

[R] Selection of cities sample

2004-04-22 Thread Matej Cepl
Hi, I have a question, how to most properly select set of cities which would be as similar as possible in some particular variables with the City of Boston (which I use as my base line). I thought about ordering cities by sum of ((differences between value of that particular variable for

Re: [R] RODBC installation in debian

2004-04-22 Thread Matej Cepl
On Thursday 22 of April 2004 08:29, Jean Eid wrote: I just did this yesterday. you do not have an ODBC driver ( as it says in the log). you need to (as root) use apt-get install unixodbc and apt-get install unixodbc-dev. The unixodbc package alone will not work, you need to install

[R] Release candidate (5.2.0rc3) of Emacs Speaks Statistics

2004-04-22 Thread Stephen Eglen
We are almost ready to release Emacs Speaks Statistics (ESS) version 5.2. A release candidate, 5.2.0rc3, is available at: http://www.analytics.washington.edu/downloads/ess/ess-5.2.0rc3.tar.gz or http://www.analytics.washington.edu/downloads/ess/ess-5.2.0rc3.zip If you know of any

Re: [R] Fatal Error: Invalid HOMEDRIVE

2004-04-22 Thread Peter Dalgaard
Vinyard Maj William C [EMAIL PROTECTED] writes: All, I've encountered the same problem as others who have posted under the same subject. I've had R-1.8.1 installed and running since it was released. Yesterday morning when I tried to start Rgui.exe I got the subject error message. Since

Re: [R] Trouble with HTML search engine

2004-04-22 Thread Thomas Lumley
On Thu, 22 Apr 2004, Damon Wischik wrote: There are obviously things I don't understand about the current help setup. If anyone is sufficiently interested in this to explain them to me, I would be grateful. (1) On my Windows XP setup, R writes an index in the directory it was installed. What

[R] error message in help.search

2004-04-22 Thread Tomo Eguchi
Hello, I looked around but couldn't find solutions for my problem. I downloaded v.1.9 and the patched version for windows. I use Windows XP professional with AMD Athlon XP. When I use help.search() function, I get the following error message: Error in .readRDS(contentsFile) : can't read

Re: [R] Trouble with HTML search engine

2004-04-22 Thread Prof Brian Ripley
On Thu, 22 Apr 2004, Thomas Lumley wrote: On Thu, 22 Apr 2004, Damon Wischik wrote: There are obviously things I don't understand about the current help setup. If anyone is sufficiently interested in this to explain them to me, I would be grateful. (1) On my Windows XP setup, R writes an

[R] downloading prob

2004-04-22 Thread Erin Hodgess
Dear R People: Are there problems with downloading the new R-1.9.0, please? I've tried several mirrors but I keep getting thrown out. Is anyone else having this problem, please? TIA, Hoping to become R-1.9.0 for Windows. Sincerely, Erin Hodgess Associate Professor Department of Computer and

[R] Question on outer(x, y, FUN,...)

2004-04-22 Thread Yao, Minghua
Dear R gurus, When I used outer(x, y, FUN, ...), I got error message when there was matrix multiplications with x or y in FUN. FUN worked fine when x and y were applied to it in FUN(x, y, ...). Is this a bug for outer( )? -MY [[alternative HTML version deleted]]

Re: [R] POSIXct vs Dates

2004-04-22 Thread Gabor Grothendieck
Frank E Harrell Jr feh3k at spamcop.net writes: I noticed the addition of the Dates class for dates without times, in R 1.9. I am making extensive use of POSIXct at present and would like to know whether it is worth changing to Dates. What are a few of the trade-offs? Before Date became

[R] [R-pkgs] ade4 package update

2004-04-22 Thread ade4
The ade4 package (v. 1.2-1) has been updated on CRAN. New features include: - functions based on Rao's axiomatization of diversity measures : Rao's diversity coefficient and dissimilarity coefficient (divc and disc) - functions based on Excoffier et al. analysis of molecular variance with tests

Re: [R] downloading prob

2004-04-22 Thread Duncan Murdoch
On Thu, 22 Apr 2004 14:06:24 -0500, Erin Hodgess [EMAIL PROTECTED] wrote : Dear R People: Are there problems with downloading the new R-1.9.0, please? I've tried several mirrors but I keep getting thrown out. Is anyone else having this problem, please? TIA, Hoping to become R-1.9.0 for

Re: [R] New version of benchmark comparing R with other software

2004-04-22 Thread Fan
Merci, Philippe. Just a complement regarding Matlab 6.5 (R13). R 1.9.0 is globally faster than Matlab 6.5 (tested on an AthlonXP): Matlab R Total time for all 15 tests (sec) 14.29 10.81 Overall mean (sec) 0.860.45 Matlab 6.5 has

Re: [R] POSIXct vs Dates

2004-04-22 Thread Patrick Connolly
On Thu, 22-Apr-2004 at 07:53PM +, Gabor Grothendieck wrote: [] | Time zones are not part of the problem | yet you have to track them. That conflicts with good design | since good design means your programs don't depend on extraneous | elements. | | With chron and Date there are no

[R] Help with debugging

2004-04-22 Thread Phillip Good
Once the IF triggers in the following program, it just won't turn off: #Get p-value from permutation distribution N = 64 cnt = 0 for (i in 1:N){ pdata = sample (data) statp=F1(size,pdata,gmean,samps) if (stat0 = statp ){ cnt=cnt+1 print(i) print (statb)

Re: [R] Help with debugging

2004-04-22 Thread Sundar Dorai-Raj
Phillip Good wrote: Once the IF triggers in the following program, it just won't turn off: #Get p-value from permutation distribution N = 64 cnt = 0 for (i in 1:N){ pdata = sample (data) statp=F1(size,pdata,gmean,samps) if (stat0 = statp ){ cnt=cnt+1 print(i)

Re: [R] Help with debugging

2004-04-22 Thread Peter Dalgaard
Phillip Good [EMAIL PROTECTED] writes: Once the IF triggers in the following program, it just won't turn off: statp=F1(size,pdata,gmean,samps) if (stat0 = statp ){ There are 2 bugs here: One in your code and one in R. F1 returns a list, so the logical thing to do would be to use

[R] slower execution in R 1.9.0

2004-04-22 Thread Scott Bartell
I have an R function (about 1000 lines long) that takes more than 20 times as long to run under R Windows 1.9.0 and 1.8.1 than it does under 1.7.1. Profile results indicate that the $-.data.frame operation is the culprit, but I don't understand exactly what that is (assignment of data frame

Re: [R] Question on outer(x, y, FUN,...)

2004-04-22 Thread Roger D. Peng
Your function is probably not vectorized. See the R FAQ question 7.19. -roger Yao, Minghua wrote: Dear R gurus, When I used outer(x, y, FUN, ...), I got error message when there was matrix multiplications with x or y in FUN. FUN worked fine when x and y were applied to it in FUN(x, y, ...).

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-22 Thread David Scott
A quick question: has anybody encountered this error working on a desktop? Users here who have had problems are working on laptops, and laptops have been mentioned in other posts. Brian said he was unable to reproduce the problem. David Scott --

Re: [R] Error with 1.9.0 - Invalid HOMEDRIVE

2004-04-22 Thread Ko-Kang Kevin Wang
I heard of this problem mentioned by one staff member here, but he suspected it was to do with Windows XP's patch. When the technician told us about getting the patches for Windows, Rgui started to crash. But then a few days later a new patch by Microsoft was released and after installing the

[R] Extracting the MSE and % Variance from RandomForest

2004-04-22 Thread David L. Van Brunt, Ph.D.
I'm almost embarrassed to ask... Almost! I've typed names(myforest.rf) to see that lots of interesting info can be called out bit by bit... But I can't seem to figure out how to just grab one or two the summary stats so I can save it out into a table alongside the prediction for the new data.

RE: [R] Extracting the MSE and % Variance from RandomForest

2004-04-22 Thread Liaw, Andy
Several ways: 1. Read ?randomForest, especially the `Value' section. 2. Look at str(myforest.rf). 3. Look at print.randomForest. If the forest has 100 trees, then the mse and rsq are vectors with 100 elements each, the i-th element being the mse (or rsq) of the forest consisting of the first i

[R] Re:Importing SPSS Data Entry data files

2004-04-22 Thread Michael Bibo
On 16 Apr, Unung Istopo Hartanto asked about using R library 'foreign' to import SPSS Data Entry data files. SPSS Data Entry is an application that allows for the creation of formatted data entry forms (as does EpiInfo, Epidata and CSPro (all free downloads)). As such it creates the usual

Re: [R] resetting the interpreter

2004-04-22 Thread Richard A. O'Keefe
Gabor Grothendieck [EMAIL PROTECTED] wrote: If you haven't tried 1.9.0 yet it does start up faster than 1.8.1. For what it's worth, on my SunBlade 100, R 1.7.1 started in 4 seconds of CPU time, 25 seconds of wall-clock time R 1.9.0 starts in 3 seconds of CPU time, 20 seconds of

Re: [R] Extracting the MSE and % Variance from RandomForest

2004-04-22 Thread David L. Van Brunt, Ph.D.
AH! That's the piece. I didn't realize it was a sort of running total. That makes sense. On 4/22/04 20:46, Liaw, Andy [EMAIL PROTECTED] wrote: consisting of the first i trees. So the last element is the mse (or rsq) of the whole forest. -- David L. Van Brunt, Ph.D. Outlier Consulting

[R] Barplot and R 1.9.0

2004-04-22 Thread Michael Bibo
I would like to preface this by saying that I have not been using R for long, and consider myself a beginner. But the more I use and learn R, the more impressed I am with both the 'product' itself, and the efforts of those developing it. It has been noted (eg Duncan Murdoch, 15 April), that

[R] Re: Evidence from Debian's package tracking

2004-04-22 Thread Ajay Shah
This shows that of the 4800 people who volunteered information, 1631 had installed gnuplot -- which suggests that perhaps one third of Debian installs are by numerate people. R-base was installed by roughly one-tenth of the sample. So that's one useful fact: Roughly one in ten of