Re: [R] identical values not so identical? newbie help please!

From: maiya <>
Date: Thu, 10 Mar 2011 13:47:24 -0800 (PST)

Quite fascinating, if annoying. Nice example Petr!

Turns out my expected values are causing even more trouble because of this! I've even gotten negative chi square values (calculated using Cressie and Read's formula)!

So instead of kludging the error measurement code, I think I'm going to have to round the actual expected values. Like

exp <- round(exp, digits=10)

Are there any ethical reservations to doing this?

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 10 Mar 2011 - 22:00:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Mar 2011 - 22:10:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive