I have to calculate B(x+a, n-x+a) where B( , ) is the beta function, 0 < a < .5, n = 10^8 and x = 10^7.
R just spits out 0 and this ruins my calculations further down the line. I tried using the Rmpfr package, but I get an error when using an mpfr object in the beta function like:
beta(Rmpfr::mpfr(.3, 32), Rmpfr::mpfr(.4, 32))
Error in beta(Rmpfr::mpfr(0.3, 32), Rmpfr::mpfr(0.4, 32)) : non-numeric argument to mathematical function
Is there a way to use this function or an extension in the Rmpfr package?