rbvec {dppmix} | R Documentation |
Generate a random binary vector.
Description
Generate a random binary vector.
Usage
rbvec(n, prob, e.min = 0)
Arguments
n |
size of binary vector |
prob |
event probability (not accounting for minimum event constraint) |
e.min |
minimum number of events |
Value
an integer
vector of 0 and 1
[Package dppmix version 0.1.1 Index]