Skip to main content

T_INV

Returns the left-tailed inverse of the Student's t-distribution.

Syntax

expression.T_INV(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe probability associated with the two-tailed Student's t-distribution, a number between 0 and 1 inclusive.
arg2RequiredApiRange | ApiName | numberA positive integer indicating the number of degrees of freedom to characterize the distribution.

Returns

number

Example

This example shows how to return the left-tailed inverse of the Student's t-distribution.

// How to calculate the left-tailed inverse of Student's t-distribution.

// Use a function to estimate the Student's t-distribution left-tailed inverse.

let worksheet = Api.GetActiveSheet();
let func = Api.GetWorksheetFunction();
let result = func.T_INV(0.75, 2);
worksheet.GetRange("B2").SetValue(result);