[R] how to keep very small or large number?

Duncan Murdoch murdoch at stats.uwo.ca
Thu Sep 22 19:53:26 CEST 2005


On 9/22/2005 12:52 PM, Cunningham Kerry wrote:
> When I was computing some joint probabilities, I found
> that R reported most of the results to to -Inf and
> thus didn't record the value. I guess it is b/c the
> joint log(probability) can be extremely small. Is
> there a way in R to keep the values even if they are
> small?

Leave them in log form, take exponentials only when you need to report them.

Duncan Murdoch




More information about the R-help mailing list