Skip to main content

T_DIST_RT

Returns the right-tailed Student's t-distribution.

Syntax

expression.T_DIST_RT(arg1, arg2);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRange | ApiName | numberThe numeric value at which to evaluate the distribution.
arg2RequiredApiRange | ApiName | numberAn integer indicating the number of degrees of freedom that characterize the distribution.

Returns

number

Example

Calculate the right-tail probability of the Student's t-distribution in a spreadsheet.

// How do I find the right-tail probability for a given t-value in a spreadsheet?

// Get the probability for the right side of the t-distribution curve in a spreadsheet.

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