bbs_test: Beta Bernoulli Sum Test

Description Usage Arguments Value

View source: R/bbs_test.R

Description

Performs a hypothesis test against a BBS null.

Usage

1
2
3
bbs_test(x, size, prob = 0.5, rho = 0, shape1 = NULL,
  shape2 = NULL, independent = TRUE, alternative = c("two_sided",
  "less", "greater"), cores = 1, ...)

Arguments

x

number of successes

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.

cores

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

...

other parameters passed to Betabinom

Value

statistic

the number of successes in the input.

parameter

the number of trials for each group of the input.

p_value

the p-value of the hypothesis test.


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