Re: [R] R and S-plus

2004-03-28 Thread Prof Brian Ripley
On Sun, 28 Mar 2004, prad s u wrote: I apologize in advance if this is the wrong area to post this message. I would like to know if there is an R equivalent for the S+finMetrics package? I'd like to be able to use R to go through the examples No. S+FinMetrics is a *module*, Insightful

[R] Could someone email me with the code for glm.nb ?

2004-03-28 Thread J . Brainard
Hi -- subject says all. I just want the code for that function, which I guess was in Venables and Ripley as early as 1994. Well, and for any of the sub-functions that glm.nb calls. I can't install the entire MASS library. If the code for just glm.nb (again, don't want to touch the MASS

[R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Erich Neuwirth
Recently, I upgraded MiKTeX to the latest versions, and since then there are problems when I try to build R and/or R packages. I tried to build R 1.9.0 beta and R 1.8.1 patched I am running Windows XP Pro, SP 1 MikTeX version is This is e-TeX, Version 3.141592-2.1 (MiKTeX 2.4) (preloaded

[R] Re: 040328 - Here is it

2004-03-28 Thread yeti
- Ceci est une réponse automatique - Bonjour, Devant le nombre grandissant de courriers publicitaires non sollicités et les attaques virales de plus en plus fréquentes j'ai été contraint d'appliquer un filtre sévère à l'entrée de ma boîte à lettre électronique. Le courrier que vous venez de

Re: [R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Roger Bivand
On Sun 28 March 2004, Prof Brian Ripley wrote: The fptex problem has been reported as happening on Unix too. Rd.sty was changed a little while ago, *but only* in 1.9.0 AFAIK. Does 1.8.1 patched not work? I have no problem with fptex, and presume Duncan M does not either, as he is

Re: [R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Uwe Ligges
Prof Brian Ripley wrote: The fptex problem has been reported as happening on Unix too. Rd.sty was changed a little while ago, *but only* in 1.9.0 AFAIK. Does 1.8.1 patched not work? I have no problem with fptex, and presume Duncan M does not either, as he is distributing binaries of 1.9.0

Re: [R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Prof Brian Ripley
hyperref.cfg is not there in the cvs sources ... which I think answers the point. Did you use --delete on rsync? The 1.9.0 beta FAQ has rsync -rC --delete rsync.R-project.org::MODULE R At present rsync.R-project.org is far too slow for me to test out what it picks up (there seems to be

Re: [R] Dopt program!

2004-03-28 Thread kjetil
On 28 Mar 2004 at 8:41, Prof Brian Ripley wrote: On Sat, 27 Mar 2004, Xianggui QU wrote: Does anybody have a workable dopt program in R to generate D-optimal designs. I downloaded dopt.zip from stat homepage of the university of oxford, whenever I load it into R and try to run, the

[R] residuals with missing values

2004-03-28 Thread ivo welch
hi: sorry to bother you all again. I am running a simple lm(y~x+z) regression, in which some of the observations are missing. Unfortunately, the residuals vector from the lm object omits all the missing values, which means that I cannot simply do residual diagnostics (e.g., plot(y,x)).

RE: [R] residuals with missing values

2004-03-28 Thread John Fox
Dear Ivo, The default na.action is na.omit, which behaves as you describe. Setting options(na.action=na.exclude), or specifying the argument na.action=na.exclude in the call to lm(), will produce residuals and other case statistics that have NA for omitted observations. See ?na.exclude and ?lm

RE: [R] splitting a character vector

2004-03-28 Thread John Fox
Dear Erin, unlist(strsplit(xa, )) should give you what you want; note that you don't need c() to define xa in your example. I hope this helps, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Erin Hodgess Sent: Sunday, March 28, 2004 12:03

Re: [R] splitting a character vector

2004-03-28 Thread Uwe Ligges
Erin Hodgess wrote: Dear R People: Suppose I have the following; xa - c(There are 5 dogs) I would like to have a new character vector such that xb[1] is There xb[2] is are xb[3] is 5 xb[4] is dogs xb - unlist(strsplit(xa, )) Uwe Ligges Since the original vector has length 1, substring

Re: [R] Could someone email me with the code for glm.nb ?

2004-03-28 Thread Rolf Turner
Hi -- subject says all. I just want the code for that function, which I guess was in Venables and Ripley as early as 1994. Well, and for any of the sub-functions that glm.nb calls. I can't install the entire MASS library. Why on earth not? What is the matter with your

RE: [R] splitting a character vector

2004-03-28 Thread Prof Brian Ripley
It would be clearer to use strsplit(xa, )[[1]] the point being that you do want the result for the first element of the first argument, picked out by [[1]]. On Sun, 28 Mar 2004, John Fox wrote: Dear Erin, unlist(strsplit(xa, )) should give you what you want; note that you don't need

[R] GLM for logistic regression and WEIGHTS

2004-03-28 Thread Marie-Pierre Sylvestre
Hi all, I want to use weights for a logistic regression. In SAS, all I have to do is to specify my weight vector (they are fractions) and use proc logistic on my binary output. When I tried to do the same in R, I got an error message because my weights were not integer. I understand that the

Re: [R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Roger Bivand
On Sun, 28 Mar 2004, Prof Brian Ripley wrote: I am now able to do a rsync checkout, and share/texmf/hyperref.cfg is not there (which is correct). I suggest you do a clean checkout. Yes, thank you - the error on my part was installing to an existing directory tree (which included the now

Re: [R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Duncan Murdoch
On Sun, 28 Mar 2004 13:10:56 +0100 (BST), you wrote: The fptex problem has been reported as happening on Unix too. Rd.sty was changed a little while ago, *but only* in 1.9.0 AFAIK. Does 1.8.1 patched not work? I have no problem with fptex, and presume Duncan M does not either, as he is

RE: [R] 3D globe plot

2004-03-28 Thread Carlos Ortega
Hello Yan, Please try it with the library scatterplot3d. Regards, Carlos. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de [EMAIL PROTECTED] Enviado el: viernes, 26 de marzo de 2004 22:28 Para: [EMAIL PROTECTED] Asunto: [R] 3D globe plot Hi, This is

Re: [R] Build problems on Windows with fpTeX and MiKTeX

2004-03-28 Thread Erich Neuwirth
Things work again. I did a clean build for r-devel, getting a fresh source tree, and now things work again (with fpTeX). I also build abind and adapt to check if packages can be build from source on Windows. Both worked. I did these two packages because abind is an R code only package and adapt

[R] German umlauts in PDF

2004-03-28 Thread Christian Schröder
Hi all. I am using R 1.8.1 on MacOS X (RAqua) to plot some graphs for my diploma thesis. I had some problems getting the german umlauts (a-dieresis, for example) into the output file using the pdf device driver. The umlauts appeared as 'white holes' in the final pdf. After hours of twiddling I

Re: [R] stop() vs. error() ?

2004-03-28 Thread Patrick Connolly
On Sat, 27-Mar-2004 at 10:13AM -0500, ivo welch wrote: | | hi andy: mea culpa. it is the exit function in most other languages. | It would be exit(0) invocation in C (C++) and perl, for example. I've not had enough experience in perl to have used exit, but this is my guess at what is

[R] Interpreting knn Results

2004-03-28 Thread Ko-Kang Kevin Wang
Hi, [I'm posting this on behalf of a colleague -- as I don't know knn myself...] How to interpret the knn() results? Tried the example codes in the documentation: data(iris3) train - rbind(iris3[1:25,,1], iris3[1:25,,2], iris3[1:25,,3]) test - rbind(iris3[26:50,,1],

[R] logo

2004-03-28 Thread Cecília Shiraiwa
Dear all, I used R in my work and would like to put the logo of these program on the background of my presentation. But the logo that cames with the program is in low resolution. Does anyone have the R logo in high resolution? Thanks Cecília Shiraiwa [[alternative HTML version

Re: [R] logo

2004-03-28 Thread kjetil
On 29 Mar 2004 at 2:03, Cecília Shiraiwa wrote: Dear all, I used R in my work and would like to put the logo of these program on the background of my presentation. Bad idea! Statistics has to do with removal of noise, to keep what might be information. Logos in the background of a

Re: [R] Could someone email me with the code for glm.nb ?

2004-03-28 Thread J . Brainard
It is a pity that both times I have tried to use R and the R-mailing list that I received unpleasant replies, esp. coming from Ripley himself this time. Last time I simply asked Why would I want to use R over Splus?? Which provoked some apologies that I wasn't to know that this would touch a

Re: [R] logo

2004-03-28 Thread Uwe Ligges
Cecília Shiraiwa wrote: Dear all, I used R in my work and would like to put the logo of these program on the background of my presentation. But the logo that cames with the program is in low resolution. Does anyone have the R logo in high resolution? Thanks Cecília Shiraiwa AFAIK, there is not

[R] about a series of arrays

2004-03-28 Thread Z P
Dear all, I now have a sequence of n-3:21, for each i, I define an array of dimension array((1/2)^i,c(rep(2,i))), I must update the (i+1)-th array with a loop according to the i-th array, How can I store all the previous arrays (the marginal parts of the (i+1)-th array will not equal to the

Re: [R] about a series of arrays

2004-03-28 Thread Uwe Ligges
Z P wrote: Dear all, I now have a sequence of n-3:21, for each i, I define an array of dimension array((1/2)^i,c(rep(2,i))), I must update the (i+1)-th array with a loop according to the i-th array, How can I store all the previous arrays (the marginal parts of the (i+1)-th array will not

RE: [R] logo

2004-03-28 Thread Bashir Saghir (Aztek Global)
Dear Cecilia, Be careful not to cause a distraction with the R logo in the background of your presentation. You could put it in one of the corners if you feel that it should be prominently displayed. Incidentally you may be interested in some guidelines for presentations that I have made

Re: [R] Could someone email me with the code for glm.nb ?

2004-03-28 Thread Roger Bivand
Dear Julii, I think it would be appropriate for you to: 1) consider how much other users of this list need to know how you are feeling this morning; 2) read and follow the recommendation at the foot of list messages, to wit: PLEASE do read the posting guide!