dbbs: Probability mass function for a sum of beta-bernoulli...

Description Usage Arguments Value Functions

View source: R/bbs.R

Description

Probability mass function for a sum of beta-bernoulli variables

Usage

1
2
3
4
5
dbbs(x, size, prob = 0.5, rho = 0, shape1 = NULL, shape2 = NULL,
  independent = TRUE, ...)

pbbs(q, size, prob = 0.5, rho = 0, shape1 = NULL, shape2 = NULL,
  independent = TRUE, lower_tail = TRUE, cores = 1, ...)

Arguments

x, q

vector of quantiles.

size

vector giving the number of trials for each group.

prob

vector giving probability of success for each group.

rho

vector giving correlation parameter for each group.

shape1, shape2

the two (positive) shape parameters of the standard beta distribution. See the documentation for Betabinom in the VGAM package.

independent

logical. If TRUE (default), assume a sum of two independent groups of variables. If FALSE, assume all variables are mutually dependent.

...

other parameters passed to Betabinom

lower_tail

logical. If TRUE (default), probabilities are P[X <= x] otherwise, P[X > x].

cores

integer. Number of cores to use (default 1).

Value

numeric, the value of the probability mass or distribution function.

Functions


anthony-aylward/betabernsum documentation built on Nov. 6, 2019, 10:20 a.m.