Can someone help me with implementing a two-tailed t-test in JavaScript?
Resource: Student's t distribution in JavaScript for Google Spreadsheet
I have taken a potential solution from the link and customized it to function outside of the form:
function LogGamma(Z) {
...
}
function Betinc(X,A,B) {
...
}
function tdist(X, df) {
...
}
It seems like this code doesn't perform as a two-tailed test. Any suggestions on how to modify it for that purpose?