Learn R Programming

GNGTools (version 1.0.0)

p2beta_diff: Probability for difference of x or more between two beta distributions

Description

Probability for difference of x or more between two beta distributions

Usage

p2beta_diff(x, a1, b1, a2, b2)

Value

returns the probability of a difference of x or more between two beta distributions. This is a simplification of the original P2beta function simplified for vectorization. Therre is a lot of space here for improved run times.

Arguments

x

value

a1

alpha for first

b1

beta for first

a2

alpha for second

b2

beta for second

Author

Randall Henner