Re: [Rd] Function to recognise convert dates between gregorian and other calendars (e.g. Persian)?

2009-01-07 Thread Whit Armstrong
probably easy to do w/ Boost DateTime http://www.boost.org/doc/libs/1_37_0/doc/html/date_time.html for which there is already an R package in development: http://repo.or.cz/w/RBoostDateTime.git I'm happy to write a small wrapper to do what you want if you can offer a pseudocode example of the co

Re: [Rd] Function to recognise convert dates between gregorian and other calendars (e.g. Persian)?

2009-01-07 Thread Ted Byers
On Wed, Jan 7, 2009 at 10:23 AM, Amy Mikhail wrote: > Dear list, > > I will shortly have some data that contains numeric dates in the Persian / > Jalali calendar format, which I would like to convert to gregorian. At the > moment there doesn't seem to be a function for this in R, but it would be

Re: [Rd] Apparant bug in binomial model in GLM (PR#13434)

2009-01-07 Thread Charles Geyer
On Wed, Jan 07, 2009 at 04:48:03PM +0100, Peter Dalgaard wrote: > Charles Geyer wrote: > ... > > BTW the particular example given doesn't make clear WHAT question cannot > > be answered correctly. Some questions can be without fuss, for example > > > >> y <- c(0,0,0,0,0,1,1,1,1,1) > >> x <- seq(a

[Rd] Function to recognise convert dates between gregorian and other calendars (e.g. Persian)?

2009-01-07 Thread Amy Mikhail
Dear list, I will shortly have some data that contains numeric dates in the Persian / Jalali calendar format, which I would like to convert to gregorian. At the moment there doesn't seem to be a function for this in R, but it would be great if someone could come up with same - I would attempt it

Re: [Rd] Apparant bug in binomial model in GLM (PR#13434)

2009-01-07 Thread Peter Dalgaard
Charles Geyer wrote: ... > BTW the particular example given doesn't make clear WHAT question cannot > be answered correctly. Some questions can be without fuss, for example > >> y <- c(0,0,0,0,0,1,1,1,1,1) >> x <- seq(along = y) >> out1 <- glm(y ~ x, family = binomial) > Warning messages: > 1: In

Re: [Rd] Apparant bug in binomial model in GLM (PR#13434)

2009-01-07 Thread Charles Geyer
> Date: Tue, 6 Jan 2009 15:00:19 + (GMT) > From: Prof Brian Ripley > Subject: Re: [Rd] Apparant bug in binomial model in GLM (PR#13434) > To: soren.fau...@biology.au.dk > Cc: r-b...@r-project.org, r-de...@stat.math.ethz.ch > Message-ID: > Content-Type: text/plain; charset="iso-8859-1"; Format

Re: [Rd] Apparant bug in binomial model in GLM (PR#13434)

2009-01-07 Thread Daniel Sabanés Bové
> There appear to be a bug in the estimation of significance in the binomial > model > in GLM. This bug apparently appears when the correlation between two variables > is to strong. > > Such as this dummy example > c(0,0,0,0,0,1,1,1,1,1)->a > a->b > m1<-glm(a~b, binomial) > summary(m1) > > It is s

Re: [Rd] ... (dotMethods) and cbind/rbind: how to give the signature?

2009-01-07 Thread Claudia Beleites
Dear Oleg, thanks a lot! I'll have S3 methods until the problems settle somehow. I wasn't aware that S3 despatch works for S4 classes as well. Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trie

Re: [Rd] methods vs. functions

2009-01-07 Thread Claudia Beleites
Dear Duncan and Oleg, thanks for your answers. For the moment, I'll use functions. Happy new year, Claudia -- Claudia Beleites Dipartimento dei Materiali e delle Risorse Naturali Università degli Studi di Trieste Via Alfonso Valerio 6/a I-34127 Trieste phone: +39 (0 40) 5 58-34 47 email: