跳到主要内容

T_INV_2T

返回学生 t 分布的双尾逆函数。

语法

expression.T_INV_2T(arg1, arg2);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number与双尾学生 t 分布相关的概率,一个介于 0 和 1 之间(含 0 和 1)的数字。
arg2必需ApiRange | ApiName | number表示分布特征自由度数的正整数。

返回值

number

示例

查找电子表格中给定双尾概率的 t 值。

// How do I find the critical t-value for a two-tailed test in a spreadsheet?

// Get the inverse of the two-tailed t-distribution for hypothesis testing in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.T_INV_2T(0.5, 10));