rbern: Random generator for the Bernoulli distribution.

Description Usage Arguments Value

View source: R/distribs.R View source: R/dppcore/R/distribs.R

Description

Random generator for the Bernoulli distribution.

Usage

1
rbern(n, prob)

Arguments

n

number of samples to generate

prob

event probability

Value

an integer vector of 0 (non-event) and 1 (event)


dppmix documentation built on Jan. 14, 2020, 5:10 p.m.