t_test_paired Subroutine

public subroutine t_test_paired(x1, x2, stat, p, dof, err)

Computes the 2-tailed Student's T-Test for two paired data sets.

See Also

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: x1(:)

An N-element array containing the first data set.

real(kind=real64), intent(in) :: x2(:)

An N-element array containing the second data set.

real(kind=real64), intent(out) :: stat

The Student-'s T-Test statistic.

real(kind=real64), intent(out) :: p

The probability value that the two samples are likely to have come from two underlying populations that have the same mean.

real(kind=real64), intent(out) :: dof

The degrees of freedom.

class(errors), intent(inout), optional, target :: err

A mechanism for communicating errors and warnings to the caller. Possible warning and error codes are as follows. - FS_NO_ERROR: No errors encountered. - FS_ARRAY_SIZE_ERROR: Occurs if x1 and x2 are not the same length.


Contents