Student distribution in JavaScript for Google Spreadsheet
Google Sheets does not currently support the standard feature TDIST
- i.e. student t-distribution. This function is critical for calculating p-values.
It looks like it has to do with the integral functions (AFAICT) not implemented.
However, Google Docs allows people to add and publish their own scripts in JavaScript.
Ideally, we should have something like:
function tdist(t_value, degrees_of_freedom, two_tailed [defaults true]) {...}
Does anyone know of a continuation of this implementation (my google-fu didn't show up, but might be weaker than yours) or a good idea how to do this?
I would like to post this along with some other useful features that are currently calculated, but a little sick (like the t-test itself).
Thanks!
+2
a source to share