rmanybern: Simulate many independent Bernoulli random variables

View source: R/rmanybern.R

rmanybernR Documentation

Simulate many independent Bernoulli random variables

Description

Simulate many independent Bernoulli random variables

Usage

rmanybern(probarr)

Arguments

probarr

An array of probability of success. Each element of the array represents the probability of success of a Bernoulli random variable that is independent of all other random variables.

Value

An array the same dimensions of probarr with simulated values of TRUE (success) or FALSE (failure).


sustainablefarms/msod documentation built on March 6, 2023, 7:17 a.m.