Is there a way to ensure rbinom()
returns at least one success?
I am running rbinom()
with a really low probability:
rbinom(5015, size=2, prob= 1/5000))
Since it is a probability distribution, there is a chance all 0s are returned. Is there a way to ensure that at there is at least one success returned?