Density, distribution function, quantile function and random generation for the Bernoulli distribution with probability equals to prob.

1 2 3 4 |

`x,q` |
vector of quantiles. |

`p` |
vector of probabilities. |

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

`prob` |
vector of probabilities of success of each trial. |

`log, log.p` |
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]. |

These fonctions use the corresponding functions from the
`binomial`

distribution with argument size = 1.
Thus, 1 is for success, 0 is for failure.

dbern gives the density, pbern gives the distribution function, qbern gives the quantile function, and rbern generates random deviates.

1 2 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.