Displaying 1 result from an estimated 1 matches for "zsim".
Did you mean:
sim
2006 Jul 27
3
bug with rpois (PR#9106)
...m.
Has this bug been fixed in later versions?
(I found another reported rpois bug, but it appears to be different
and to have been fixed :
rpois gives a large number repeatedly
kjetikj at astro.uio.no
Tue, 15 Feb 2000 12:18:28 +0100 (MET))
The following output helps illustrate the bug.
> zsim
function(nc = 100, nr = 500, theta = 1)
{# check rpois function
x <- matrix(rpois(nr*nc, theta),nrow=nr,ncol=nc)
z<-apply(x,2,mean)
list(z=z)}
> zsim(theta=10)
$z
[1] 9.594 9.552 9.538 9.448 9.438 9.544 9.630 9.474 9.568 9.700 9.720 9.642
[13] 9.624 9.328 9.420 9.492 9.368 9.6...