[R] Q: how to submit documentation patches?

2004-08-25 Thread David Forrest
I don't want to gripe here, but I would like to know the best method for submitting suggestions and patches to the documentation. It looks like for many help items, we need to track from the html file which help.search(*)/help(*) presents, back to the authoritiative documentation file from which

[R] R and Latex tables

2004-08-25 Thread Joao Pedro W. de Azevedo
Dear R users, I would like to know if there is any way that I can aumatically generate *.tex files with the output of my estimations from R. Many thanks in advance, Joao Pedro __ [EMAIL PROTECTED] mailing list

[R] Problems with Heatmap

2004-08-25 Thread michael watson (IAH-C)
Hi I am having some problems getting my heatmap to be the right size! Let me explain. I am experienced at getting an hclust or a dendrogram object to be the right size. For example, I have a dataset which has 4000 rows, which I clustered using hclust and I wanted to plot it as a horizontal

Re: [R] R and Latex tables

2004-08-25 Thread Kevin Wang
Hi, On Wed, 25 Aug 2004, Joao Pedro W. de Azevedo wrote: Dear R users, I would like to know if there is any way that I can aumatically generate *.tex files with the output of my estimations from R. Take a look at the xtable package. HTH, Kevin Ko-Kang

RE: [R] R and Latex tables

2004-08-25 Thread Rau, Roland
Hi, -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Joao Pedro W. de Azevedo Sent: Wednesday, August 25, 2004 10:43 AM To: [EMAIL PROTECTED] Subject: [R] R and Latex tables Dear R users, I would like to know if there is any way that I can

[R] R-help

2004-08-25 Thread Jim Gustafsson
Dear R users, I have just start working with R and would need some help. If you have a matrix as: [,1][,2] [,3] [1,] 11 24 11 [2,] 16 29 16 [3,]215 2 and you want the position where you can find the maximum value, in this case row 2 and column 2. How

Re: [R] R-help

2004-08-25 Thread Dimitris Rizopoulos
Hi Jim, you could try this: mat - matrix(sample(1:25), 5, 5) mat row(mat)[mat==max(mat)] col(mat)[mat==max(mat)] I hope it helps. Best, Dimitris Dimitris Rizopoulos Doctoral Student Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35,

Re: [R] Help using Hmisc / Latex

2004-08-25 Thread Kevin Wang
Hi, On Wed, 25 Aug 2004, Joao Pedro W. de Azevedo wrote: ## Annette Dobson (1990) An Introduction to Generalized Linear Models. ## Page 9: Plant Weight Data. summary(lm.D90 - lm(weight ~ group - 1))# omitting intercept out - latex(lm.D90) latex(out, model1, file=) When I run this code, I

[R] Heckman estimation

2004-08-25 Thread Arne Henningsen
Hi, I wrote a function to perform a two-step Heckman (also known as heckit) estimation. This function is mainly a wrapper function to glm (1st step probit estimation) and lm (2nd step OLS estimation). Though this function is not perfect yet, it is IMHO already very useful. Since there were

RE: [R] Problems with Heatmap

2004-08-25 Thread Liaw, Andy
By `filling up the page with heatmap', do you mean the image map on the lower right corner of a typical heatmap? If so, that's just image(), so you can use that directly. Andy From: michael watson (IAH-C) Hi I am having some problems getting my heatmap to be the right size! Let me

[R] Mapping PCA loadings on to map

2004-08-25 Thread Laura Quinn
Hello all, I have performed PCA on stacked wind vector data for 20 different spatial locations. In this case I therefore am in effect working out a PCA for 40 different stations (2 paired pieces of information [ie u and v vector information] for each station), so have 40 PCs. In my previous PCA

[R] Testing Performance of R on AIX

2004-08-25 Thread Liao, Kexiao
Dear R Users, I compiled two R-1.9.1 environments on IBM P690 AIX platform, one with optimization level 3(-O3), another with optimization level 2(-O). I would like to do some performance comparison with these two environments. Can anybody give me some advices for how to do the performance test

RE: [R] Testing Performance of R on AIX

2004-08-25 Thread Whit Armstrong
Acovea is a nice tool for testing gcc optimization options, but you would probably have to do a lot of work to build tests for R. http://www.coyotegulch.com/products/acovea/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Liao, Kexiao

[R] Missing Info on /bin/macosx/r-devel

2004-08-25 Thread Diethelm Wuertz
A minor problem ... Since several weeks the Daily checking results for contributed packages with R-devel for MacOSX seems to be broken, respectively the check file is empty. Please follow the links http://cran.r-project.org/bin/macosx/ and http://cran.r-project.org/bin/macosx//r-devel. Does

[R] ADE4

2004-08-25 Thread jpineda
**Libre de Virus - Escaneado por la Universidad de Manizales** X-Virus-Scanned: by AMaViS perl-11 Solicito su ayuda para encontrar e instalar el ADE4, pues en la versión 1.9.1. que tengo instalada no la encuentro y estos son mis primeros ejercicios Le agradezco su colaboración

[R] Win-Edt and Sweave

2004-08-25 Thread Joao Pedro W. de Azevedo
Hello, Does anyone knows if there is any plugin for Sweave to run on WinEdt, or any other windows Latex editor? Many thanks, JP __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] sjava problem

2004-08-25 Thread Pillas Thibaut
hello, I am trying to install SJava on Windows XP as described on http://www.omegahat.org/RSJava/: at the level configure.win: $rhome/sjava/configure.win returned argument 'c:/...' ignored When i tried to install like the readme file, it returned in R library(SJava) using JAVA_HOME =

RE: [R] Win-Edt and Sweave

2004-08-25 Thread Liaw, Andy
What's wrong with (X)Emacs? If you want to use Sweave together with R and LaTeX, there's probably nothing else that's better. Andy From: Joao Pedro W. de Azevedo Hello, Does anyone knows if there is any plugin for Sweave to run on WinEdt, or any other windows Latex editor? Many thanks,

RE: [R] Win-Edt and Sweave

2004-08-25 Thread Rau, Roland
Hi, -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Joao Pedro W. de Azevedo Sent: Wednesday, August 25, 2004 5:25 PM To: [EMAIL PROTECTED] Subject: [R] Win-Edt and Sweave Does anyone knows if there is any plugin for Sweave to run on

[R] Re: R online manuals

2004-08-25 Thread Martin Maechler
[diverted from R-devel to R-help, since hopefully of much wider interest] PD == Peter Dalgaard [EMAIL PROTECTED] on 25 Aug 2004 17:17:55 +0200 writes: PD [EMAIL PROTECTED] writes: There is a mistake on the Weibull Distribution (base package) help page in the online docs

Re: [R] Win-Edt and Sweave

2004-08-25 Thread Uwe Ligges
Joao Pedro W. de Azevedo wrote: Hello, Does anyone knows if there is any plugin for Sweave to run on WinEdt, or any other windows Latex editor? Many thanks, JP __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

RE: [R] ADE4

2004-08-25 Thread Almirall, Daniel
La manera mas facil seria haciendo clic en Packages -- Install Packages from CRAN -- ADE4. Despues que lo instales, usa la siguente orden para poder utilizar la libreria ADE4: library(ade4) Espero que esto te ayude, Danny -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[R] S - R

2004-08-25 Thread Zachary Skrivanek
Hello! I would like to be able to read in list data objects in R/S created in R/S. (Ie R-S or S-R.) I have tried 'dput' and 'dump' in S, but neither of the created files could be read into R (with 'dget' nor 'source'). Is there any way that I can save a list object in S that can be read

[R] Measuring Variational Distance

2004-08-25 Thread Bret Collier
R-Users, Does anyone know if there is a package or code somewhere in R that provides a measure of the maximum difference between 2 distributions defined on a common space? I think it is called variational distance? I have constructed several marginal distribution plots

Re: [R] S - R

2004-08-25 Thread Tony Plate
Have you tried following the advice in the R Data Import/Export manual? It suggests the following: Function data.restore reads S-PLUS data dumps (created by data.dump) with the same restrictions (except that dumps from the Alpha platform can also be read). It should be possible to read data

Re: [R] S - R

2004-08-25 Thread Sundar Dorai-Raj
Zachary Skrivanek wrote: Hello! I would like to be able to read in list data objects in R/S created in R/S. (Ie R-S or S-R.) I have tried 'dput' and 'dump' in S, but neither of the created files could be read into R (with 'dget' nor 'source'). Is there any way that I can save a list object

[R] Statistical Learning and Data Mining course

2004-08-25 Thread Trevor Hastie
Short course: Statistical Learning and Data Mining Trevor Hastie and Robert Tibshirani, Stanford University Georgetown University Conference Center Washington DC September 20-21, 2004 This two-day course gives a detailed overview of statistical models for data mining, inference and

RE: [R] S - R

2004-08-25 Thread Rau, Roland
Hi, -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Zachary Skrivanek Sent: Wednesday, August 25, 2004 6:29 PM To: [EMAIL PROTECTED] Subject: [R] S - R 'source'). Is there any way that I can save a list object in S that can be read into

RE: [R] Adding labels to variables

2004-08-25 Thread Raubertas, Richard
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Maechler Sent: Wednesday, August 25, 2004 2:46 AM To: Austin, Matt Cc: [EMAIL PROTECTED] Subject: RE: [R] Adding labels to variables AustinM == Austin, Matt [EMAIL PROTECTED] on

Re: [R] ADE4

2004-08-25 Thread Spencer Graves
S'il vous plait: La lengua de esta listserve es inglés. Sé que es difícil expresarse en una lengua diferente de lo suyo, pero muchas personas apprendan leyendo las preguntans y contestaciones de esta lista. Muchos de los leyentes aquí no entienden francés o aleman o japones o ... .

[R] License for including datasets in packages

2004-08-25 Thread Arne Henningsen
Dear All, I would like to publish a function for 'heckit' estimations together with two examples from Greene's and Wooldridge's econometric textbooks. These examples use the dataset of Mroz (1987) that is also available in John Fox' car package. However, not all variables that are used in my

RE: [R] Help using Hmisc / Latex

2004-08-25 Thread Kevin Bartz
I'm afraid you need to modify your approach. You're trying to pass latex an lm object, which latex doesn't know how to handle. Also, latex isn't supposed to produce a full .tex file; it generates just a core that's loaded into a shell when you run dvi. Here's an example of how you might use it

Re: [R] S - R

2004-08-25 Thread Rolf Turner
I'm puzzled by the discourse in this thread. Briefly, dput() and dget() seem to work just fine for me. I tried junk - list(x=rnorm(20),y=sample(1:100,12,TRUE)) dput(junk,junk.dat) in Splus (Version 6.1.2 Release 2 for Sun SPARC, SunOS 5.6 : 2002) and then in R

Re: [R] S - R

2004-08-25 Thread Tony Plate
I think the issue is that dput() and dget() don't work for some more complex structures (as you point out, they do appear to work for simple structures). The R Data Import/Export manual doesn't mention using dput and dget to transfer objects between R and S-PLUS, perhaps because these

Re: [R] S - R

2004-08-25 Thread Rolf Turner
Thanks Tony. But the Mr. Skrivanek initially said he couldn't get dput() and dget() to work with ***lists***. It seems to turn out that lists, as such, are not the issue. The problem stems from having relatively weird components in the lists. Also, in your example, the issue is not an R -- S

[R] Newbie Question: Spatial Autocorrelation with R Tutorial?

2004-08-25 Thread Jeff Hollister
Howdy All, I am looking for some good tutorials (books, websites, whatever) for calculating/testing for Spatial Autocorrelation using R. Specifically, I am wanting to test for autocorrelation of a number of variables measured at a set of discrete locations. Up to this point I have been

[R] Censored (Tobit) Regression method

2004-08-25 Thread Eric Peterson
I need to give a quick description of Tobit Regression (TR), including how it differs from ordinary least squares (OLS). I am an ecologist who knows just enough about remote sensing and statistics to be dangerous in both. Now I have found myself doing a remote sensing project where I have used

[R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Yao, Minghua
Hi, Is there any function that can arrange a character in alphabetic order? Thanks for answer -MY [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

RE: [R] License for including datasets in packages

2004-08-25 Thread John Fox
Dear Arne, I'm not a lawyer, but I believe that data per se are not copyrightable. Regards, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arne Henningsen Sent: Wednesday, August 25, 2004 12:06 PM To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Liaw, Andy
You mean as in: x - c(aaa, abc, ab, d) sort(x) [1] aaa ab abc d ?? Andy From: Yao, Minghua Hi, Is there any function that can arrange a character in alphabetic order? Thanks for answer -MY __ [EMAIL PROTECTED] mailing list

Re: [R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Jeff Gentry
Is there any function that can arrange a character in alphabetic order? Thanks for answer Check out sort(). vv - c(letters[5:10], letters[20:11], letters[21:26], letters[4:1]) vv [1] e f g h i j t s r q p o n m l k u v w[20] x y z d c b a sort(vv) [1] a b c d e f g h i j k l m n o p q r

Re: [R] How to Arrange character vector in alphabetic order

2004-08-25 Thread Sundar Dorai-Raj
Yao, Minghua wrote: Hi, Is there any function that can arrange a character in alphabetic order? Thanks for answer -MY [[alternative HTML version deleted]] __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] RE: How to Arrange character vector in alphabetic order

2004-08-25 Thread Yao, Minghua
Sorry for not asking the question clearly. The elements of the character vector may consist of numbers not just letter. How to do that. Thanks. -MY From: Yao, Minghua Sent: Wed 8/25/2004 2:20 PM To: R Help Subject: How to Arrange character vector in alphabetic

Re: [R] Pixmap problem

2004-08-25 Thread Roger Bivand
On Wed, 25 Aug 2004, Benjamin Lloyd-Hughes wrote: Hi, I'm having trouble writing .pnm images which I think is due to a problem with my colour space. The pixmap object seems to be looking for 72 of 8 colours (one per cell?) which doesn't seem healthy... library(pixmap) x -

RE: [R] Adding labels to variables

2004-08-25 Thread Mike Prager
At 01:01 PM 08/25/2004, Raubertas, Richard wrote: As long as the function to load a package is called *library*, I think your campaign to change common usage is doomed to failure. Yes, and it's also annoyingly hard to remember -- at least for those of us who don't eat, sleep, and breathe R. MHP

Re: [R] RE: How to Arrange character vector in alphabetic order

2004-08-25 Thread Sundar Dorai-Raj
Yao, Minghua wrote: Sorry for not asking the question clearly. The elements of the character vector may consist of numbers not just letter. How to do that. Thanks. -MY Why won't ?sort do what you want? Please provide an example and the output you desire. --sundar

[R] integrate function

2004-08-25 Thread Ronaldo Reis Jr.
Is possible to integrate this diferential equation: dN/dt = Nr(1-(N/K)) in R using the integrate() function? Or any other diferential equation? If yes, how? If no, anybody know any software on linux that make this? Inte Ronaldo -- O problema de ter os dois pés bem firmes no chão é que você

RE: [R] RE: How to Arrange character vector in alphabetic order

2004-08-25 Thread Liaw, Andy
Please do read the posting guide, which suggests that you provide a simple example of what you want to achieve, instead of leaving people guessing what you have in mind. Andy From: Yao, Minghua Sorry for not asking the question clearly. The elements of the character vector may consist of

Re: [R] Adding labels to variables

2004-08-25 Thread Peter Dalgaard
Mike Prager [EMAIL PROTECTED] writes: At 01:01 PM 08/25/2004, Raubertas, Richard wrote: As long as the function to load a package is called *library*, I think your campaign to change common usage is doomed to failure. Who says it's common usage? It is of course a common fallacy to think that

Re: [R] integrate function

2004-08-25 Thread Peter Dalgaard
Ronaldo Reis Jr. [EMAIL PROTECTED] writes: Is possible to integrate this diferential equation: dN/dt = Nr(1-(N/K)) in R using the integrate() function? No. Or any other diferential equation? Only if the right hand side does not depend on the dependent variable (N in this case) -- just

Re: [R] [Q] Apply Function Over Multiple Array Margins

2004-08-25 Thread Peter Dalgaard
Paul Roebuck [EMAIL PROTECTED] writes: Is there a canonical means to apply a function over multiple arrays simultaneously? For example, if I wanted to plot each line with a different color? Or is a for loop conversion my best option? Try looking at matplot() and friends... x - seq(0, 8,

Re: [R] [Q] Apply Function Over Multiple Array Margins

2004-08-25 Thread Jeff Gentry
Is there a canonical means to apply a function over multiple arrays simultaneously? For example, Would mapply() get you what you're looking for? __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] gam plots

2004-08-25 Thread Paul von Hippel
When smooths fitted by the gam package are plotted, what are the units of the vertical axis? Is there a simple way to change these units to units of the dependent variable? Thanks for any suggestions! Paul von Hippel Paul von Hippel Department of Sociology / Initiative in Population Research

[R] brlr function

2004-08-25 Thread Min-Han Tan
Hi, I'm trying the brlr function in a penalized logistic regression function. However, I am not sure why I am encountering errors. I hope to seek your advice here. (output below) Thank you! Your help is truly appreciated. Min-Han #No error here, the glm seems to work fine

RE: [R] Adding labels to variables

2004-08-25 Thread Raubertas, Richard
Sigh. I thought I was making a small innocuous observation, but it has apparently been taken as some kind of challenge. Martin's efforts to correct this usage seem (to me) frequent enough to justify calling the mistake 'common', but I guess others will disagree. And what grounds do you have for

[R] Beginners Question: Make nlm work

2004-08-25 Thread Johannes Graumann
Hello, I'm new to this and am trying to teach myself some R by plotting biological data. The growth curve in question is supposed to be fitted to the Verhulst equation, which may be transcribed as follows: f(x)=a/(1+((a-0.008)/0.008)*exp(-(b*x))) - for a known population density (0.008) at t(0).

RE: [R] Adding labels to variables

2004-08-25 Thread Berton Gunter
May I also point out the following section title in the R1091 FAQ for Windows: 3.1 Can I install packages (libraries) in this version? So I think that R's own documentation supports Rich's (gentle) comment. -- Bert Gunter Genentech -Original Message- From: [EMAIL PROTECTED]

Re: [R] Beginners Question: Make nlm work

2004-08-25 Thread Jim Brennan
- Original Message - From: Johannes Graumann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 7:07 PM Subject: [R] Beginners Question: Make nlm work Hello, I'm new to this and am trying to teach myself some R by plotting biological data. The growth curve in

Re: [R] labels on secondary y axis

2004-08-25 Thread Patrick Connolly
On Thu, 26-Aug-2004 at 01:34AM +0100, Louize Hill wrote: | Hi, | I have plotted a graph and used a secondary axis as follows: | | plot (d$Year, d$HrFishing, type='l', col='1', xlab='Year', ylab='Effort | (hours/fishing)') | par(new=TRUE) | plot (d$Year, d$Landings, type='l', col='3', xlab='',

[R] Re: brlr function

2004-08-25 Thread Min-Han Tan
Thank you all. The reason was because the dependent should have been 0 and 1, rather than 1 and 2! Apologies for any trouble. Min-Han On Wed, 25 Aug 2004 18:40:38 -0400, Min-Han Tan [EMAIL PROTECTED] wrote: Hi, I'm trying the brlr function in a penalized logistic regression function.

Re: [R] Beginners Question: Make nlm work

2004-08-25 Thread Johannes Graumann
Aaaa - there was my conceptual problem ... Thanks! ... but 'Oh, God!'! R sucks at fitting (when directed to do so by the simple minded)! Or am I really that off? I attach a plot that contains my data as well as two modeled curves: - the nice one fitted by gnuplot (nonlinear least-squares

RE: [R] Adding labels to variables

2004-08-25 Thread John Fox
Dear Spencer et al., I agree with Spencer's point: It's one thing to introduce usePackage() and encourage its use, another to remove library(). Regards, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Spencer Graves Sent: Wednesday, August

Re: [R] Adding labels to variables

2004-08-25 Thread Gabor Grothendieck
Peter Dalgaard p.dalgaard at biostat.ku.dk writes: There's a good chance that R-2.x will introduce usePackage() and eventually remove library() as a tool for loading packages. We already have require(). __ [EMAIL PROTECTED] mailing list

[R] Difficulties in starting up with its package

2004-08-25 Thread Ajay Shah
Folks, I'm trying to learn `its' and am stuck on many basics. Could you please help? I am on R 1.9.1 (2004-06-21) on Linux 2.4.17 #2. My its version says Packaged: Tue Apr 27 13:38:25 2004; HeywoodG Built: R 1.9.0; ; 2004-04-28 15:03:13; unix This part flows fine -- library(its) x1 -

[R] Plotting groupedData objects

2004-08-25 Thread David Scott
I am trying to create a plot similar to Figure 3.2 in Bates and Pinheiro. I have repeated measurements on about 80 subjects from 2 treatment groups. I would like to have the panels for the two treatment groups in separate groups and within those groups have the panels ordered on maximum value

Re: [R] Difficulties in starting up with its package

2004-08-25 Thread Gabor Grothendieck
Ajay Shah ajayshah at mayin.org writes: : : Folks, : : I'm trying to learn `its' and am stuck on many basics. Not sure about those issues but I am familiar with zoo and you could do the above in zoo like this. require(zoo) d - seq(as.Date(2000-01-01), as.Date(2000-01-10), by = day) x1 -

[R] Order with scientific notations

2004-08-25 Thread Kevin Wang
Hi, If a value like 8e-04 is in a data frame, is the following behaviour normal? final.df Chr P.values 11 0.0379 260.068 32 0.0025 4 138e-04 5 14 0.0244 63 0.0279 74 0.1561 85 0.9261 97 0.0011 10 9 0.5125 11

RE: [R] library() (was Adding labels to variables)

2004-08-25 Thread Prof Brian Ripley
Can I remind people to use a relevant subject line -- this has gone way off the original topic. It is not proposed to just rename library() to usePackage() or similar. The need is for a new interface to the loading of packages, one that returns useful information in an object. We also need to