Skip to content

rpois > 0

5 messages · Rolf Turner, Peter Dalgaard, knut-o

#
On 15/10/11 10:15, knut-o wrote:
The rpospois() function from the VGAM package is what you are looking for.

I found this by doing:

     RSiteSearch("truncated Poisson")

and scrabbling through the results a bit.

[Give a man a fish and you feed him for a day.  Teach a man
  to fish ... and you destroy an eco-system. :-) ]

     cheers,

         Rolf Turner
#
On Oct 15, 2011, at 01:44 , Rolf Turner wrote:

            
Or, 

qpois(runif(m,dpois(0,lambda),1),lambda)

should do the trick.
#
On 16/10/11 03:45, peter dalgaard wrote:
Well shut a bruck, as we say in New Zilland!  How bleedin' simple.
And obvious --- once it's been pointed out! :-)

     cheers,

         Rolf
1 day later