I am debugging a large set of nested models that encounter problems during optimization. During the process of zeroing by what, in my opinion, causes errors, I discovered unusual behavior in the function rpois().
It appears that with very large averages rpois(), returns instead NA. This problem does not raise a warning. See below for reproducible code set.
> rpois(1,3000000000)
[1] NA
My question is twofold:
1 - why does it show this behavior (is there a maximum size for an integer for the rpois function?) And
2 - is there work to prevent NA generation (even if it limits the size of the average input to a certain smaller value)?
I am running 32x R version 3.0.2 on 64x Windows 7.
source
share