Re: [R] problem with logistic regression

2005-02-08 Thread Helene . Dryssens
You're right!!! Thank you very much Selon Peter Dalgaard [EMAIL PROTECTED]: [EMAIL PROTECTED] writes: Hi, we try to do a logistic regression with the function glm. But we notice that this function don't give the same results as the SAS proc catmod (differents estimate given).

Re: [R] proportional matrix rows

2005-02-08 Thread Robin Hankin
Hi Peter, Gabor On Feb 7, 2005, at 04:42 pm, Peter Dalgaard wrote: Gabor Grothendieck [EMAIL PROTECTED] writes: Robin Hankin r.hankin at soc.soton.ac.uk writes: : I want a diagnostic that detects whether a row is a multiple of : the first row or not. ..and in that case it might be easier just to

[R] lme4 -- GLMM

2005-02-08 Thread Pavel Khomski
hello! this is a question, how can i specify the random part in the GLMM-call (of the lme4 library) for compound matrices just in the the same way as they defined in the lme-Call (of the nlme library). For example i would just need random=list(my.Subject=pdBlocked(list(pdIdent(~...

RE: [R] simple example of C interface to R

2005-02-08 Thread Rau, Roland
Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, February 04, 2005 10:40 PM To: Roger Bivand Cc: r-help@stat.math.ethz.ch Subject: Re: [R] simple example of C interface to R On Fri, Feb 04, 2005 at 09:09:37PM +0100,

Re: [R] R on Beowulf cluster?

2005-02-08 Thread Barry Rowlingson
Liaw, Andy wrote: Thanks for the reply. I'm aware of almost all of those things you mentioned, and have played with some of them. I'm not looking to do distributed computing within R at this point. What I'm after, though, is not really addressed by any of them. I want a user to be able to

[R] logistic regression

2005-02-08 Thread Helene . Dryssens
Hi, I'm using glm function to do logistic regression and now I want to know if it exists a kind of R-squared with this function in order to check the model. Thank you. __ R-help@stat.math.ethz.ch mailing list

[R] rename object

2005-02-08 Thread Ulrich Leopold
Dear list, I would like to rename an object as follows: SimLUall - matrix(c(0,1,0,0, 1,0,0,0, 0,0,1,0, 0,0,0,1),nrow=4, ncol=4) j - 2 SimLUall2 - SimLUall and j The value of j should be assigned automatically to SimLUall. How can I achieve this? Regards, Ulrich

Re: [R] rename object

2005-02-08 Thread Uwe Ligges
Ulrich Leopold wrote: Dear list, I would like to rename an object as follows: SimLUall - matrix(c(0,1,0,0, 1,0,0,0, 0,0,1,0, 0,0,0,1),nrow=4, ncol=4) j - 2 SimLUall2 - SimLUall and j Not absolutely sure what you are going to do, I guess either SimLUall2 - SimLUall SimLUall - j or

Re: [R] rename object

2005-02-08 Thread Eric Lecoutre
Hi Ulrich See: ? assign and ? paste with something like: assign(paste(SimLUall,j,sep=),SimLUall) Note though that if you are planning some simulations, many guRus would say that you should use a list. nsimul - 100 simOut - vector(mode=list,length=nsimul) names(simOut) -

lme4 package etc {Re: [R] lme4 -- GLMM}

2005-02-08 Thread Martin Maechler
Pavel == Pavel Khomski [EMAIL PROTECTED] on Tue, 08 Feb 2005 10:20:03 +0100 writes: Pavel this is a question, how can i specify the random part Pavel in the GLMM-call (of the lme4 library) for compound Pavel matrices just in the the same way as they defined in Pavel the

Re: lme4 package etc {Re: [R] lme4 -- GLMM} | fortunes package

2005-02-08 Thread Eric Lecoutre
I guess Martin is struggling to have the most entries in the next version of fortunes ;-) Well... I hope so! Or we should really do something for new users - letting any R core team member getting convulsive is dangerous for the futuRe. Best wishes, Eric Pavel this is a question, how can i

[R] Re:logistic regression

2005-02-08 Thread Vito Ricci
Hi, I don't know if a pseudo squared R for glm exists in any R package, but I find some interesting functions in S mailing list: http://www.math.yorku.ca/Who/Faculty/Monette/S-news/0422.html Here are some functions for calculating (pseudo-)R^2, which may be of use to some. Rsquared -

RE: [R] R on Beowulf cluster?

2005-02-08 Thread Liaw, Andy
From: Barry Rowlingson Liaw, Andy wrote: Thanks for the reply. I'm aware of almost all of those things you mentioned, and have played with some of them. I'm not looking to do distributed computing within R at this point. What I'm after, though, is not really addressed by any of

[R] Memory game

2005-02-08 Thread letudiant51
I am a student and for my R project I have to program a memory game, that is a game for the children with cards and you have to find pairs. Wouldn’t you have this program in your computer for make an example for me. Thanks for helping me!! __

Re: [R] rename object

2005-02-08 Thread Duncan Murdoch
On Tue, 08 Feb 2005 11:36:29 +0100, Eric Lecoutre [EMAIL PROTECTED] wrote : Note though that if you are planning some simulations, many guRus would say that you should use a list. nsimul - 100 simOut - vector(mode=list,length=nsimul) names(simOut) - paste(simu,1:nsimul,sep=) for (i in

Re: lme4 package etc {Re: [R] lme4 -- GLMM}

2005-02-08 Thread Douglas Bates
Martin Maechler wrote: Pavel == Pavel Khomski [EMAIL PROTECTED] on Tue, 08 Feb 2005 10:20:03 +0100 writes: Pavel this is a question, how can i specify the random part Pavel in the GLMM-call (of the lme4 library) for compound Pavel matrices just in the the same way as they defined

Re: [R] logistic regression

2005-02-08 Thread Chuck Cleland
Terry Elrod posted functions for (pseudo-)R^2 on S-news back in 1998: http://www.biostat.wustl.edu/archives/html/s-news/1998-02/msg00267.html I am not sure that it performs well as a check of the model, so you might want to investigate that further. [EMAIL PROTECTED] wrote: I'm using glm

[R] logistic regression

2005-02-08 Thread Dan Bebber
Helene, you should read up about AIC, deviance, and deviance residuals, then look at the summary() for your model. Dan Dr. Daniel P. Bebber Department of Plant Sciences University of Oxford OX1 3RB UK Message: 78 Date: Tue, 8 Feb 2005 11:15:35 +0100 From:

Re: [R] Memory game

2005-02-08 Thread Achim Zeileis
On Tue, 8 Feb 2005 12:35:17 +0100 (CET) [EMAIL PROTECTED] wrote: I am a student and for my R project I have to program a memory game, that is a game for the children with cards and you have to find pairs. Wouldn’t you have this program in your computer for make an example for me. Thanks for

Re: [R] Memory game

2005-02-08 Thread Uwe Ligges
[EMAIL PROTECTED] wrote: I am a student and for my R project I have to program a memory game, that is a game for the children with cards and you have to find pairs. Wouldnt you have this program in your computer for make an example for me. Thanks for helping me!! !!! Generally, we don't do the

Packages and Libraries (was: Re: lme4 package etc {Re: [R] lme4 -- GLMM}

2005-02-08 Thread A.J. Rossini
For OBVIOUS reasons, is there any chance that we could introduce package() and deprecate library()? (well, I'll also ask if we could deprecate = for assignment, but that's hopeless). best, -tony On Tue, 8 Feb 2005 11:49:39 +0100, Martin Maechler [EMAIL PROTECTED] wrote: Pavel == Pavel

Re: [R] Re:logistic regression

2005-02-08 Thread Frank E Harrell Jr
Vito Ricci wrote: Hi, I don't know if a pseudo squared R for glm exists in any R package, but I find some interesting functions in S mailing list: It is included in lrm in the Design package. But note that this is not for checking fit but rather for quantifying predictive discrimination. .

[R] Confidence intervals for rates (dependent events)

2005-02-08 Thread Dirk Enzmann
I need advice or opinions for the following problem: In a sample a part of the respondents has experienced victimizing events. Only a part of these events have been reported to the police. The rate of events reported to the police is number of experienced events / number of reported events.

Re: Packages and Libraries (was: Re: lme4 package etc {Re: [R] lme4 -- GLMM}

2005-02-08 Thread Peter Dalgaard
A.J. Rossini [EMAIL PROTECTED] writes: For OBVIOUS reasons, is there any chance that we could introduce package() and deprecate library()? usepackage() or usePackage() has been suggested, but someone got ambitious and wanted it to be different from library(), and it sort of didn't get any

[R] Copula as measure of correlation

2005-02-08 Thread Sean Creighton
Hello Has anybody implemented a copula correlation in R in order to correlate between two non-normally distributed time series. Thanks Sean __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the

Re: [R] R or weka

2005-02-08 Thread Christian Schulz
Hi, it's dependend of your task and the amount of data. R-project have a lot more possibilities manipulate the data and many different plot possibilities. Weka have the nice possibilty use the experimenter which could test several algorithms on different dataset's for comparison, further you

[R] Toying with neural networks

2005-02-08 Thread Cerviño Beresi Ulises
Hello all, Ive been playing with nnet (package 'nnet') and Ive come across this problem. nnet doesnt seems to like to have more than 1000 weights. If I do: data(iris) names(iris)[5] - species net - nnet(species ~ ., data=iris, size=124, maxit=10) # weights: 995 initial value 309.342009

[R] 2: lme4 --- GLMM

2005-02-08 Thread Pavel Khomski
Douglas Bates wrote: The GLMM function in the lme4 package allows you to specify crossed random effects within the random argument without the need for the pdBlocked and pdIdent constructions. Simply ensure that your grouping factors are defined in such a way that each distinct group has a

[R] Methods overview

2005-02-08 Thread Sean Davis
Sorry for the very basic, general question I have read over the methods aspects of the R Language Reference manual and some of the help pages (methods, setGeneric, etc.) and remain a bit confused yet about R methods. Looking through the contributed docs and mail archives didn't give me

[R] have R informed of MySQL table updates

2005-02-08 Thread bogdan romocea
Dear useRs, I have a script (Python) that every once in a while appends data to a MySQL table. Meanwhile, I have a running R session, and I want it to be aware of such table updates. I could write a loop in R to periodically check whether new data has become available; however, are you aware of a

Re: [R] Packages and Libraries

2005-02-08 Thread Rolf Turner
A.J. Rossini wrote: For OBVIOUS reasons, is there any chance that we could introduce package() and deprecate library()? (well, I'll also ask if we could deprecate = for assignment, but that's hopeless). Amen to both suggestions. cheers,

Re: [R] Methods overview

2005-02-08 Thread Rolf Turner
Sean Davis wrote (inter alia): Also, just a general question, but are S4 methods now the standard? My God! I hope not!!! cheers, Rolf Turner [EMAIL PROTECTED]

RE: [R] Drawing maps of UK

2005-02-08 Thread dr mike
The package blighty allows you to draw the UK coastline. Regards Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of michael watson (IAH-C) Sent: 08 February 2005 13:25 To: r-help@stat.math.ethz.ch Subject: [R] Drawing maps of UK Hi I have downloaded

Re: [R] Toying with neural networks

2005-02-08 Thread Tom Mulholland
You are not reading the help. from the help file ## Default S3 method: nnet(x, y, weights, size, Wts, mask, linout = FALSE, entropy = FALSE, softmax = FALSE, censored = FALSE, skip = FALSE, rang = 0.7, decay = 0, maxit = 100, Hess = FALSE, trace = TRUE,

[R] Windows Printing and Line Widths

2005-02-08 Thread McGehee, Robert
Hi all, I develop and print from both Windows and Linux, and am seeing some printing inconsistencies first described about a year and a half ago by Andy Liaw (see below). Specifically, the line widths on my windows plots are about 5 times smaller than that on Linux, and my windows printouts do not

[R] panel plot with log-scaled x-axis

2005-02-08 Thread Christoph Scherber
Dear all, Can anyone help me plotting a panel plot with log-scaled x axes? My formula looks like this: coplot(response~div|treatment+grass, panel=function(x,y,...){panel.xyplot(x,y,...);panel.lmline(x,y,...)}) And I´d like to have div plotted in log scale. Thanks very much for your help! Best

RE: [R] Methods overview

2005-02-08 Thread Berton Gunter
VR's S PROGRAMMING is an excellent reference with a thorough discussion and examples of S3 methods. It is somewhat less thorough about S4 methods, perhaps because the implementation was still in process at the time of the book's writing. Maybe BDR's online complements have more, but I haven't

RE: [R] Drawing maps of UK

2005-02-08 Thread Roger Bivand
On Tue, 8 Feb 2005, dr mike wrote: The package blighty allows you to draw the UK coastline. Yes, everyone outside the US gets good, free data from the US government, like coastlines, but has to jump through hoops to get administrative area boundary files, that in the US are simply free for

[R] Using GRASS/R interface with an xy location

2005-02-08 Thread Steven T.Stoddard
I am using GRASS 5.7 and R 2.0 for OS X. I have a simple xy location I am doing some theoretical work with and would like to import maps into R using the interface in order to do analyses. Yet when I attempt to do this, I get the following error: G-gmeta() Error in gmeta() : region for

[R] How to get variable names in a function?

2005-02-08 Thread Heinz Tuechler
Hello, applying a function to a list of variables I face the following problem: Let's say I want to compute tables for several variables. I could write a command for every single table, like bravo-c(1,1,2,3,5,5,5,);charly-c(7,7,4,4,2,1) table(bravo); table(charly) table(bravo); table(charly)

Fw: [R] Contour plot

2005-02-08 Thread dhkblaszyk
I understand that I need to have a (in this case) square matrix with all the data. But the question now is; - can the contourplot not interpolate the missing values or alternatively - I have fit a model to the z data (z = 100 + 0.5x + 0.5y). How can I make from this model a square matrix z to

Rép : [R] Problem installing Hmisc

2005-02-08 Thread Denis Chabot
Hi, I do have it installed on 2 Macs as well (OS X 10.2.8 and 10.3.7) and what I need does work, however if you do the command check routine some problems will likely be revealed. At least there were problems for me. Denis Le 08 févr. 2005, à 12:23, [EMAIL PROTECTED] a écrit : De: Don

[R] Re: [STATSGRASS] Using GRASS/R interface with an xy location

2005-02-08 Thread Roger Bivand
On Tue, 8 Feb 2005, Steven T.Stoddard wrote: I am using GRASS 5.7 and R 2.0 for OS X. I have a simple xy location I am doing some theoretical work with and would like to import maps into R using the interface in order to do analyses. Yet when I attempt to do this, I get the following

RE: [R] parameter couldn't be set in high-level plot() function

2005-02-08 Thread Warnes, Gregory R
Thanks for your patch, I've modified the code of bandplot appropriately. This change will be in the next release of the gregmisc bundle. -G -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of R user Sent: Tuesday, January 25, 2005 1:02 PM To:

Re: [R] Windows Printing and Line Widths

2005-02-08 Thread Prof Brian Ripley
Those printers AFAIK support postscript. How are you printing to them on Linux? I suggest you use dev.print under Windows (it needs some setup, see ?postscript). That makes more sense than going via PDF as the support is all already in R and it is AFAIK the printer's native mode. We've seen

[R] Re: [STATSGRASS] Using GRASS/R interface with an xy location reverse(G) error

2005-02-08 Thread Steven T.Stoddard
Ok. The work-around I can grow accustomed to, or I might fall back on GRASS5.4 if that works. I wonder if another problem that cropped up is somehow related to the first. Using interp=TRUE I managed to import a raster map to R. But when trying to plot it, I get the following:

Re: [R] simple example of C interface to R

2005-02-08 Thread jbdunsmo
On Tue, Feb 08, 2005 at 10:55:01AM +0100, Rau, Roland wrote: do you know already the page of Roger D. Peng? He has a document entitled An Introduction to the .C Interface to R. It is located at: http://www.biostat.jhsph.edu/~rpeng/docs/interface.pdf thanks. that's a nice tutorial, but

[R] consultation

2005-02-08 Thread Lic. Adrián Cecotto - FACEA
R People Is it possible to make financial calculus with are. anybody can help me on it? TU Adrián __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] Question about R.

2005-02-08 Thread Fernando Calle
__ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Windows BMPs: Why grey background? How to display BMP in R?

2005-02-08 Thread Earl F. Glynn
white is supposed to be the default background for BMPs (according to ?bmp) but it doesn't work bmp(test.bmp, bg=white) plot(0) dev.off() # results in grey background # This seems to be a good enough workaround for now. bmp(test.bmp) par(bg=white) plot(0) dev.off() #

RE: [R] How to get variable names in a function?

2005-02-08 Thread Liaw, Andy
This might be easier for your purpose: lapply(list(bravo=bravo, charly=charly), table) $bravo 1 2 3 5 2 1 1 3 $charly 1 2 4 7 1 1 2 2 Andy From: Heinz Tuechler Hello, applying a function to a list of variables I face the following problem: Let's say I want to compute tables

Re: [R] panel plot with log-scaled x-axis

2005-02-08 Thread Deepayan Sarkar
On Tuesday 08 February 2005 10:19, Christoph Scherber wrote: Dear all, Can anyone help me plotting a panel plot with log-scaled x axes? My formula looks like this: coplot(response~div|treatment+grass, panel=function(x,y,...){panel.xyplot(x,y,...);panel.lmline(x,y,...)}) Are you sure that

RE: [R] How to get variable names in a function?

2005-02-08 Thread Berton Gunter
If you pass your function a NAMED list, then the following works: demofn-function(varlist) { nm-names(varlist) for (i in seq(along=varlist)) {cat('\n',nm[i]) print(table(varlist[[i]])) } } demofn(list(bravo=bravo, charly=charly)) If you don't pass a named list,

[R] Plotting estimated betas, standard error

2005-02-08 Thread Darla Munroe
Hello, I was wondering, is there a way to plot estimated betas and standard deviations that I've generated? Specifically, I have the following: A matrix of estimated betas (two different betas, 4 different simulations - categories). A matrix of estimated standard errors corresponding

[R] Renaming columns in data.frame, inserting/removing columns from data.frame

2005-02-08 Thread Ken Termiso
Hello, I'm hoping that there is an easier way to rename columns in a data frame other than by using the names() assignment, which requires you to type in all the column names at once for a data.frame, in the case that I simply want to rename a single column in a data frame. Also, is there an

Re: [R] Plotting estimated betas, standard error

2005-02-08 Thread Chuck Cleland
You could use Dotplot() in the Hmisc package. For example: mydata - data.frame(BETA = runif(4, min=.50, max=.70), SIM = c(Sim A, Sim B, Sim C, Sim D)) mydata$CIL - mydata$BETA - runif(4, min=.05, max=.20) mydata$CIU - mydata$BETA + runif(4, min=.05, max=.20) Dotplot(SIM ~ Cbind(BETA, CIL, CIU),

Re: [R] Renaming columns in data.frame, inserting/removing columns from data.frame

2005-02-08 Thread Sean Davis
On Feb 8, 2005, at 1:47 PM, Ken Termiso wrote: Hello, I'm hoping that there is an easier way to rename columns in a data frame other than by using the names() assignment, which requires you to type in all the column names at once for a data.frame, in the case that I simply want to rename a

Re: [R] Renaming columns in data.frame, inserting/removing columns from data.frame

2005-02-08 Thread Witold Eryk Wolski
Ken Termiso wrote: Hello, I'm hoping that there is an easier way to rename columns in a data frame other than by using the names() assignment, which requires you to type in all the column names at once for a data.frame, in the case that I simply want to rename a single column in a data frame.

[R] Compiling R as a shared library

2005-02-08 Thread Min-Han Tan
Hi, I am trying to compile R as a shared library (need to run RMAGEML, which depends on SJava) on 64bit SUSE Linux 9.1 . I am using the source code for R 2.0.1 (Nov 15 04) ./configure R_PAPERSIZE=LETTER R_BROWSER=/opt/kde3/share/applications/kde/konqbrowser.desktop --enable-R-shlib

Re: [R] Windows BMPs: Why grey background? How to display BMP in R?

2005-02-08 Thread Earl F. Glynn
Duncan Murdoch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 8 Feb 2005 11:35:22 -0600, Earl F. Glynn [EMAIL PROTECTED] wrote : In what version of R? I just tried in 2.01 and R-patched, and it was fine. Maybe the problem is your viewer? Sorry. I thought I was using R

Re: [R] consultation

2005-02-08 Thread Uwe Ligges
Lic. Adrián Cecotto - FACEA wrote: R People Is it possible to make financial calculus with are. anybody can help me on it? Depends on what you mean with financial calculus. Please read the posting guide mentioned below and - if you have still questions - ask a precise question. Uwe Ligges TU

RE: [R] simple example of C interface to R

2005-02-08 Thread Huntsinger, Reid
Rtest.o is just an object file, and the second call to gcc is really a call to ld and creates Rtest.so, a shared library. Neither is executable. Probably you want to compile Rtest.c into an executable; it does have the main function after all. Perhaps gcc -L/usr/local/lib -o Rtest Rtest.o

Re: [R] Windows BMPs: Why grey background? How to display BMP in R?

2005-02-08 Thread Prof Brian Ripley
The manual is the source code: we would have to read it to answer your questions so you may as well read it yourself. That driver was written last century by someone no longer active in the R project. On Tue, 8 Feb 2005, Earl F. Glynn wrote: Duncan Murdoch [EMAIL PROTECTED] wrote in message

RE: [R] simple example of C interface to R

2005-02-08 Thread Prof Brian Ripley
Did none of you notice the Makefile in that directory? On Tue, 8 Feb 2005, Huntsinger, Reid wrote: Rtest.o is just an object file, and the second call to gcc is really a call to ld and creates Rtest.so, a shared library. Neither is executable. Probably you want to compile Rtest.c into an

[R] batch jobs question

2005-02-08 Thread Chao Zhu
Hi,there I'm doing some R batch jobs in Unix. Something like R prog1 output1 --save R prog2 output2 --save prog1 and prog2 are running at the same time and they are essentially same except it contains different parameter values. I was wondering if two processes will affect each other?

Re: [R] simple example of C interface to R

2005-02-08 Thread jbdunsmo
thanks for all the help. i've tried everyone's suggestions, to no avail... On Tue, Feb 08, 2005 at 04:19:10PM -0500, Huntsinger, Reid wrote: Rtest.o is just an object file, and the second call to gcc is really a call to ld and creates Rtest.so, a shared library. Neither is executable.

Re: [R] batch jobs question

2005-02-08 Thread Rolf Turner
I'm doing some R batch jobs in Unix. Something like R prog1 output1 --save R prog2 output2 --save prog1 and prog2 are running at the same time and they are essentially same except it contains different parameter values. I was wondering if two processes will affect each other?

Re: [R] simple example of C interface to R

2005-02-08 Thread Prof Brian Ripley
On Tue, 8 Feb 2005 [EMAIL PROTECTED] wrote: thanks for all the help. i've tried everyone's suggestions, to no avail... Not *my* suggestion, though. Mine was to use the Makefile, which has Rtest: Rtest.o embeddedRCall.o $(R_CMD_LINK) -o $@ Rtest.o embeddedRCall.o $(LIBR) and just needs

[R] testing exponential distributions

2005-02-08 Thread Christian Jost
Dear all, I try to test behavioural data durations whether they follow an exponential distribution. My data have the particularity that there are no values below a certain threshold, and the only test adapted to this case I could find is the Shapiro-Wilk test for exponentiality (Shapiro Wilk

RE: [R] How to get variable names in a function?

2005-02-08 Thread Heinz Tuechler
At 12:51 08.02.2005 -0500, Liaw, Andy wrote: This might be easier for your purpose: lapply(list(bravo=bravo, charly=charly), table) $bravo 1 2 3 5 2 1 1 3 $charly 1 2 4 7 1 1 2 2 Andy Thank you for your answer. In the case of the example it is sufficient, but I see that I did not choose

RE: [R] How to get variable names in a function?

2005-02-08 Thread Heinz Tuechler
At 10:32 08.02.2005 -0800, Berton Gunter wrote: If you pass your function a NAMED list, then the following works: demofn-function(varlist) { nm-names(varlist) for (i in seq(along=varlist)) {cat('\n',nm[i]) print(table(varlist[[i]])) } } demofn(list(bravo=bravo,

Re: [R] batch jobs question

2005-02-08 Thread Prof Brian Ripley
On Tue, 8 Feb 2005, Chao Zhu wrote: I'm doing some R batch jobs in Unix. Something like R prog1 output1 --save R prog2 output2 --save Consider R CMD BATCH instead: it redirects the error/warnings too, which I expect you would want to do. prog1 and prog2 are running at the same time and they

Re: [R] consultation

2005-02-08 Thread Jim Michael
Perhaps this is useful: QuantLib: http://www.quantlib.org/ Extensions: http://www.quantlib.org/extensions.shtml RQuantLib: http://dirk.eddelbuettel.com/code/rquantlib.html Cheers, Jim On Tuesday 08 February 2005 17:23, Lic. Adrián Cecotto - FACEA wrote: R People Is it possible to make

Re: [R] Re:logistic regression

2005-02-08 Thread Frank E Harrell Jr
Joe Nocera wrote: Helene - In addition to some of the excellent suggestions already posited (e.g. examining AIC, pseudo R^2 in the Design package), you might want to consider another tool to assess logistic regression model accuracy: the area-under-curve (AUC) from a receiver-operating

RE: [R] How to get variable names in a function?

2005-02-08 Thread Liaw, Andy
Here's a (rather ugly) function that takes its arguments and turn them into a list, using the names of the arguments and the names of the components: listWithName - function(...) { aname - sapply(as.list(substitute({...})[-1]), deparse) res - list(...) names(res) - aname res }

[R] Dates labels on axes in xyplot

2005-02-08 Thread Denham Robert
I am a bit confused about how to get the format of the labels in xyplot to show as dates rather than the numeric value. e.g., x - as.Date(c(20/01/2001,20/02/2003,21/06/2004),%d/%m/%Y) y - c(1,2,3) plot(y~x) #produces formatted labels xyplot(y~x) #doesn't give formatted x labels

Re: [R] Dates labels on axes in xyplot

2005-02-08 Thread Dirk Eddelbuettel
On 9 February 2005 at 14:37, Denham Robert wrote: | I am a bit confused about how to get the format of the labels in xyplot | to show as dates rather than the numeric value. | | e.g., | | x - as.Date(c(20/01/2001,20/02/2003,21/06/2004),%d/%m/%Y) | y - c(1,2,3) | | plot(y~x) #produces

RE: [R] Contour plot

2005-02-08 Thread Mulholland, Tom
x - rep(seq(1,10),10) y - rep(seq(1,10),each = 10) z - matrix(100 + x*0.5 + y*0.5,ncol=10,byrow=T) contour(z) or back to where you were originally x - 1:10 y - 1:10 # z - 100:110 z - 1:100 contour(matrix(z,ncol=10)) read the help on contour it states that z: a matrix containing the values to

Re: [R] Dates labels on axes in xyplot

2005-02-08 Thread Renaud Lancelot
Dirk Eddelbuettel a écrit : On 9 February 2005 at 14:37, Denham Robert wrote: | I am a bit confused about how to get the format of the labels in xyplot | to show as dates rather than the numeric value. | | e.g., | | x - as.Date(c(20/01/2001,20/02/2003,21/06/2004),%d/%m/%Y) | y - c(1,2,3) |

Re: [R] Data manipulation

2005-02-08 Thread Helmut Kudrnovsky
thanks a lot for the information, reshape did the job datars -reshape(data, timevar=TERRCODE, idvar=BID, direction=wide) greetings helli BID TERRCODEANMCODE 200310413120660 22 0 200310413120660 273 0 200310413120660 280 0 200310413120660 467 0 200310413120660 468