rbern {dppmix} | R Documentation |
Random generator for the Bernoulli distribution.
Description
Random generator for the Bernoulli distribution.
Usage
rbern(n, prob)
Arguments
n |
number of samples to generate |
prob |
event probability |
Value
an integer
vector of 0 (non-event) and 1 (event)
[Package dppmix version 0.1.1 Index]