#beta
beta() function return the beta function and the natural logarithm of the beta function.
B(a,b) = Γ(a)Γ(b)/Γ(a+b)
beta(a, b)
a,b: non-negative numeric vectors
@R_Experts
beta() function return the beta function and the natural logarithm of the beta function.
B(a,b) = Γ(a)Γ(b)/Γ(a+b)
beta(a, b)
a,b: non-negative numeric vectors
> beta(4,9)
[1] 0.0005050505
> x <- c(3,6, 4)
> y <- c(7,4, 12)
> beta(x,y)
[1] 0.0039682540 0.0019841270 0.0001831502
@R_Experts