Bernoulli: Bernoulli distribution wrappers

Description Usage Arguments

Description

Wrappers for dbinom, pbinom, qbinom and rbinom with size set to 1.

Usage

1
2
3
4
5
6
7
dbernoulli(x, prob, log = FALSE)

pbernoulli(q, prob, lower.tail = TRUE, log.p = FALSE)

qbernoulli(p, prob, lower.tail = TRUE, log.p = FALSE)

rbernoulli(n, prob)

Arguments

x

vector of quantiles.

prob

probability of success on each trial.

log

logical; if TRUE, probabilities p are given as log(p).

lower.tail

logical; if TRUE (default), probabilities are P[X ≤ x], otherwise, P[X > x].

p

vector of probabilities.

n

number of observations. If length(n) > 1, the length is taken to be the number required.


lionel-/gsim documentation built on May 21, 2019, 6:41 a.m.