Dear All,

I would be very grateful if someone could answer the following question:

I am trying to randomly generate values from the zero-truncated negative binomial distribution. I already found rposnegbin in the package VGAM. However, I need a detailed code since I am trying to export it to WinBugs. I noticed that the way out of this problem for the zero-truncated Poisson distribution is provided on the following page: https://stat.ethz.ch/pipermail/r-help/2005-May/070680.html . I was just wondering is there something similar for ZTNB?

Thank you for your time and expertise.

Kind regards,

Andrius Budnikas


	[[alternative HTML version deleted]]

