2.1.24.5.1.21 tcdf


Description

Student's t cdf

Syntax

double tcdf( const double dT, double df, int iTail = TAILED_TEST_LOWER, int * nFail = NULL )

Parameters

dT
[input] value of the Student's t variate. .
df
[input] degrees of freedom
iTail
[input]
1( TAILED_TEST_UPPER )for upper tail,
2( TAILED_TEST_LOWER) for lower tail.
3( TAILED_TEST_TWO_SIGN_IF), the two tail (significance level) probability is returned,.
4( TAILED_TEST_TWO_CONFID), the two tail (confidence interval) probability is returned,
nFail
[output] on successful exit, it returns the NAG error code NE_NOERROR; if an error or warning has been detected, then it returns the specific error or warning code.

Return

Returns the value for cumulative distribution function for T distribution

Examples

Ex1

void tcdf_ex1()
{
	double dT[]= {0.25, 0.5, 0.75};
	double df = 3;
	for(int ii = 0; ii<3; ii++)
		printf("%f	%f:	%f\n", dT[ii], df, tcdf(dT[ii],df));
}

Remark

See Also

Header to Include

origin.h

Reference