[Rd] using Chi-square test with a certain number of degrees of freedom ?

2008-03-03 Thread Frank Feng
Hi all, Could someone please help me to calculate the P-value by using Chi-square test with a certain number of degrees of freedom? I have a data set to be calculated here: observed: 224, 64, 6 expected: 222.9, 66.2, 4.9 degrees of freedom: 1 I have been reading the documentations for th

Re: [Rd] Clipping using par(plt=..., xpd=FALSE) inconsistencies

2008-03-03 Thread Greg Snow
Thanks, Sorry I waited so long to get back, I wanted to test it out and waited for the update to the windows port that includes this. This is certainly a better approach. The hist example works great, but the behaivior of points still has me a bit confused. > # trying to get a plot with top hal

[Rd] DataTime field when converting between database formats

2008-03-03 Thread Tom McCallum
I was recently converting a MS-Access database to MySQL when I came across this error: Error in fromchar(unclass(x)) : character string is not in a standard unambiguous format The error occurs because the NULL value of a DateTime field, if not properly setup or on export to a CSV, can be s

[Rd] Losing attributes in data.frame() (PR#10873)

2008-03-03 Thread gunter . berton
Folks: Problem: [<-.data,frame() is losing attributes under certain curcumstances shown below. I think this is a bug, at least in documentation, as I was unable to find explicit documentation of the behavior. Indeed, the only documentation I found told me attributes are preserved. Here is a de

Re: [Rd] Problems initializing an extended S4 class

2008-03-03 Thread Jim Regetz
Hi Martin, Many thanks for the reply, that really helps a lot. Some follow-up observations below. Martin Morgan wrote: > Hi Jim -- > > I think your problems have to do with the way 'initialize' and > 'validObject' work together. At some point in it's code, validObject > converts an instance 'b'

Re: [Rd] patch for random.c

2008-03-03 Thread Martin Maechler
> "BAT" == Berwin A Turlach <[EMAIL PROTECTED]> > on Fri, 29 Feb 2008 18:19:40 +0800 writes: BAT> Dear all, BAT> while looking for some inspiration of how to organise some code, I BAT> studied the code of random.c and noticed that for distributions with BAT> 2 or 3 para