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
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg1 | Required | ApiRange | ApiName | number | The numeric value at which to evaluate the distribution. | |
| arg2 | Required | ApiRange | ApiName | number | An integer indicating the number of degrees of freedom that characterize the distribution. |
Returns
number
Example
This example shows how to return the right-tailed Student's t-distribution.
- Code
- Result
// How to calculate the right-tailed Student's t-distribution.
// Use a function to estimate the Student's t-distribution right-tailed.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.T_DIST_RT(1.5, 10));