Posted By

fonnesbeck on 08/01/09


Tagged

random R Poisson truncated


Versions (?)

Truncated Poisson Random Variate Generator


 / Published in: R
 

Generates truncated Poisson random numbers.

  1. rtpois <- function(N, lambda, k)
  2. qpois(runif(N, ppois(k, lambda), 1), lambda)

Report this snippet  

You need to login to post a comment.