Cbeta {UCS} | R Documentation |
Computes the (complete) Beta function and its base 10 logarithm.
Cbeta(a, b, log=FALSE)
a, b |
numeric vectors |
log |
if TRUE , returns the base 10 logarithm of the Beta
function (default: FALSE ) |
This is just a front-end to the built-in beta
and
lbeta
functions, provided mainly for consistent naming.
Note that the logarithmic version is scaled to base 10 logarithms,
according to the UCS conventions.
The Beta function with arguments (a
, b
), or its base 10
logarithm (if log=TRUE
).
beta
, Ibeta
, Rbeta
, Cgamma
,
Igamma
, Rgamma
x <- 5 y <- 3 ((x+y+1) * beta(x+1,y+1))^-1 # == choose(x+y, x)