Function: tToZ()
ts
function tToZ(t, df): number;Defined in: src/utils/statistics.ts:323
Converts a t-statistic to an approximate z-score.
For large degrees of freedom (df > 30), uses a simple approximation: z = ((1 - 1/(4df)) * t) / sqrt(1 + tt/(2*df))
For smaller df, uses a Wilson-Hilferty cube-root transformation.
Time complexity: O(1)
Parameters
t
number
t-statistic value
df
number
Degrees of freedom
Returns
number
Approximate z-score
Throws
If df < 1