Calculates the t-value given the one-sided probability and the degrees of freedom.
function cdft_t ( p : numeric, df : numeric ) return_val : numeric
A scalar or array containing probabilities ( 0 <= p < 1 ).df
A scalar or array of the same size as p containing the number of degrees of fredom.
A array of the same size as p. Double if any of the input arguments are double, float otherwise.
Using the cumulative distribution function for the T distribution, calculate the t-values associated with one or more probabilities and degrees of freedom. Technically, this is the upper limit of integration of the t-density distribution.
The source code is from source routine "CDFT" from DCDFLIB (Double precision Cumulative Distribution Function LIBrary).
df = 16 p = 0.025 T = cdft_t(p, df) ; T = -2.12 p = 0.975 T = cdft_t(p, df) ; T = 2.12