Randomly selecting values from a zero inflated distribution in R
问题 Hello and thanks in advance for the help! A while back I asked a question about randomly selecting values according to a probability distribution. This is related, but I think it deserves its own post. The vector I created in the last question was binary, now I would like to generate a weighted vector (ie with bounded integers). I am sampling from a zero-inflated or quasi-poisson distribution with a long tail, so there is a much higher probability of selecting a zero than another value, but