So far my assumptions/code:
//from jstat.js line 833
function gammapinv(p,a){
..
}
//from jstat.js line 1329
function gammainv(p, shape, scale) {
return scale / gammapinv(1 - p, shape);
};
thanks in advance
regards
Ignazio
Have you tried entering in the same values into jStat and Excel and see if the same values come out? AFAIK, no tests were added when those functions were introduced. So I'm not completely sure if they operate correctly.
Hi Trevor,
I did the test and the results are quite different, so I think I'm extracting the wrong gammainv from the jstat code (the two (Excel,jstat) gammaln compute the same...
10,00001131 Excel-GAMMAINV(Prob;Alpha;Beta) 0,1448275529 custom_gammainv
0,068094 Probability
9 Alpha
2 Beta
2,651253879 Excel GAMMAINV(Prob) 2,651253879 custom_gammaln
regards
I
Hi Trevor,
sorry for the "noise": jStat.gamma.inv(probability,alpha,beta) computes nearly the same of Excel (10.00001119143767).
Need more investigation...then
regards
Ignazio
sorry for the "noise": jStat.gamma.inv(probability,alpha,beta) computes nearly the same of Excel (10.00001119143767).
Need more investigation...then