Description Usage Arguments Details Value Examples
Generate sample from independent Bernoulli random variables with different probabilities
1 | bernoullirnd(p)
|
p |
vector of probabilities for zero |
Generate sample from independent Bernoulli random variables with different probabilities
the vector of 0/1 Bernoulli random variables
1 2 | probs <- c(0.5, 0.8, 0.1)
bvarrKK:::bernoullirnd(probs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.