N
News
Can anyone help me with a problem concerning the betainv worksheet function?
Let me say right away that I am not a statistician!
I have a requirement to convert some Excel VBA code into C++ for speed
purposes. The code that I need to convert calls the betainv worksheet
function. I have managed to find an implementation of betainv on the web.
While testing the program I have discovered that my betainv in C++ is giving
different results to the excel worksheet function. I know that the most
likely possibility is that it is my function that is in error, however, I
have an innate distrust of all things microsoft. I cannot see any errors in
my code (that doesn't mean they don't exist!)
Alternatively, perhaps my algorithm is wrong. The code that I have taken
from the web contains the following reference:
// ALGORITHM AS 63 APPL. STATIST. VOL.32, NO.1
// Computes P(Beta>x)
Does this mean anything to anyone? Is this the same algorithm as used by
Excel? Does anyone know what algorithm Excel uses? Can anyone supply me
with a few betainv values & the parameters of probability, alpha & beta used
to calculate them?
Alternatively, does anyone have a C++ inplementation of betainv (that would
save me a lot of headaches!!!)
Thanks
Let me say right away that I am not a statistician!
I have a requirement to convert some Excel VBA code into C++ for speed
purposes. The code that I need to convert calls the betainv worksheet
function. I have managed to find an implementation of betainv on the web.
While testing the program I have discovered that my betainv in C++ is giving
different results to the excel worksheet function. I know that the most
likely possibility is that it is my function that is in error, however, I
have an innate distrust of all things microsoft. I cannot see any errors in
my code (that doesn't mean they don't exist!)
Alternatively, perhaps my algorithm is wrong. The code that I have taken
from the web contains the following reference:
// ALGORITHM AS 63 APPL. STATIST. VOL.32, NO.1
// Computes P(Beta>x)
Does this mean anything to anyone? Is this the same algorithm as used by
Excel? Does anyone know what algorithm Excel uses? Can anyone supply me
with a few betainv values & the parameters of probability, alpha & beta used
to calculate them?
Alternatively, does anyone have a C++ inplementation of betainv (that would
save me a lot of headaches!!!)
Thanks